strip_tags in workflow rules

Some users format the text of his letters (html). Is it possible to remove the formatting?

example in php: $description = strip_tags($description,'<br>, <img>');
4 comments
Comment actions Permalink
Unfortunately there isn't so high-level method but you can try to strip tags by names, e.g. "sample".replace("<br>", ""); or using other string methods.
0
Comment actions Permalink
can i use RegExp to replace substring?

For example, real e-mail fragment:
<div><div><span style="font-size: 26px; line-height: 10px;"><font style="font-size: 9px; "><br><br>***********</font></span><div><span style="font-size: 26px; line-height: 10px;"><font style="font-size: 9px; ">some text</font></span>
sometimes use classes in div blocks

Problem after this format - CSS layout breaks, incorrectly displays the text, font, color, etc.
0
Comment actions Permalink
Unfortunately you cannot use regexps.
If you're experiencing problems with html tags with 'create issues from email' feature please report new issue.
0
Comment actions Permalink
Thank you. Be sure to open the issue
0

Please sign in to leave a comment.