how to delete html tags datalist alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
miki
Member II

how to delete html tags datalist alfresco

Hello
I would like to understand how to delete html tags from a text field.
Would anyone know how to give me some advice?

thank you very much

5 Replies
eugenio_romano
Alfresco Employee

Re: how to delete html tags datalist alfresco

Is this a question related to ADF? 

miki
Member II

Re: how to delete html tags datalist alfresco

Hello

it is not related to the ADF. I have an xml xon a text field that at the time of typing from the interface the user could also insert html tags like <li> test test </ li>
I would simply delete these tags.

Have you some suggestions to give me?

thank you very much

eugenio_romano
Alfresco Employee

Re: how to delete html tags datalist alfresco

On npm, there are many libraries to Sanitize untrusted HTML you can search about it and avoid completely to store it with the HTML tags

miki
Member II

Re: how to delete html tags datalist alfresco

Thank a lot. I should make sure that.

<property name="gth:toDo"><title>To do </title> d:text</property>

sss

sss

bb    Do you think there is a property to disable html tags?

I         would like the html tags not to be stored while the user writes:

<li>         <li>  good morning </li>

I w                       would like the <li> and </li> not to be  stored...  It's possible?

than       Thank you very much

eugenio_romano
Alfresco Employee

Re: how to delete html tags datalist alfresco

I think you should give a look at those libraries that I told you is possible with them. I suggest you to look for Sanitize untrusted HTML.