How to remove html tags from variable?

bambinou

Client
Регистрация
22.08.2011
Сообщения
434
Благодарностей
21
Баллы
18
Hi all,

Let's say you have a variable like this one:
{-Variable.FullName-}

And its output is:
<br>frederic<br> or may also have:
</br>frederic</br>

How to remove both <br> and </br>from the above variable please?

Also, how to remove any possible html tags from {-Variable.FullName-}

The above is something I I will need to start doing a lot.


Thanks!
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113
You can use: Data ==> Text processing ==> Replace. And use regex <.*?> for replace. This will replace anything that's between < and >
If there is a lot more complex html page then I would use HtmlAgility pack library.
 
  • Спасибо
Реакции: bambinou

bambinou

Client
Регистрация
22.08.2011
Сообщения
434
Благодарностей
21
Баллы
18
Thank you so much, I will give it a shot tonight!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)