Hi,
I have a text_area field and I like to be able to format the content, so html or rtf seems to be the most convenient display type. But now I like to convert the formatted content to text for export reasons. Is there any way to do it?
//Returns the escaped markup text (HTML/XML)
var escapedText = utils.stringEscapeMarkup('<html><body>escape me</body></html>')
"<html><body>escape me</body></html>"
this sould be bold
and this maybe italic
elements.myname.getAsPlainText();
irenem wrote:Hi Joas,
nop, I want the formatted text. Thats why I have an html area, so that the user can format the text and export it.
<html>
<head>
</head>
<body>
<p style="margin-top: 0">
Zandweg 69 B
</p>
<p style="margin-top: 0">
3454 JW <b>De Meern</b>
</p>
</body>
</html>
Users browsing this forum: No registered users and 3 guests