Hi,
There is html content with the data, may i know how do i handle this html in outSystems Reactive Web?
For example,
<div>
<ul>
<li>Text1</li>
<li>Text2</li>
<li>Text3</li>
</ul
</div>
I want to remove the html tag and display according to the html tag in web.
Hey!
So, your content have HTML tags. Where? is it in CKEditor or other plugin?
You want to remove the tags and add according to the html tags in web? Those are already valid html tags.
cheers!
Bruno Machado wrote:
Yes, The data is saved in the DB from the CKEditor(with HTML tags). Now I need to show the same data on detail page but without tags and add the HTML to the text according to the tags. The tags are valid HTML tags.
Meetali Gupta wrote:
Alright, the plugin itself has a couple of functions to retrieve the inserted text without any html in it.Create a new function, like this:
You can copy the action GetDataFromEditr that already comes with the plugin.
You also can test this by writing CKEDITOR.instances['NAME_OF_YOUR_INSTANCE'].document.getBody().getText();
Cheers!
Hi Meetali,
Please check this link
https://www.outsystems.com/forge/component-overview/145/html-utils
Regards
Shashikant Shukla
Maybe Daniël Kuhlmann's HTML Santizer can be user for this?https://www.outsystems.com/forge/component-overview/8079/reactive-html-sanitizer
Regards,
Lennart
You donot need to remove html tags you can do it by simple javascript code-
"document.getElementById($parameters.widgetID).innerHTML += $parameters.Tags"
Because after that you need to show same content in html tags.
Link- Sample Dynamic Tags
Put you html content in input and see result.
Attached oml will help you .
Regadrs
Rahul Sahu