Home > Software design >  HTML tags in google sheets
HTML tags in google sheets

Time:10-18

I have text in a column that contains html tags. Is it possible to get rid of it and leave only plain text? here is the example of a text:

enter image description here

CodePudding user response:

try:

=INDEX(IFNA(REGEXREPLACE(A1:A; "<\/\w >|<\w .*?>"; )))

or if you have more complex tags try:

=INDEX(IFNA(REGEXREPLACE(A1:A; "</?\S [^<>]*>"; )))

CodePudding user response:

Try

=TRIM(REGEXREPLACE(A1,"<.*>",""))

or

=TRIM(REGEXREPLACE(A1;"<.*>";""))
  • Related