Hi is it possible to keep H3, br and Color tags after converting html to Text?
Once its converted I use the following expression to display the converted text:
replace(body('Html_to_text'), decodeuricomponent('%0A'), '')
Is this possible?
split the data entry into multiple fields, and create the markup yourself. So anything they type into the header box will get wrapped with <h3></h3> anything in the body would be wrapped in <p></p> create as many entries as you need distinct HTML tags
Hi @knishal,
did you try to replace '<h3' with '~H3~' And then execute HTML to text?
Hi @knishal,
Probably the simplest option would be to add the text without formatting and let them edit the page afterwards directly in SharePoint?
From an automation point of view I cannot think of a scenario how this technically could be simplified.
You are asking to simplify the translation of one language to another language without
A. learning the target language by the user who enters the formatted data
B. implementing the translation logic in your flow
That is kind of challenging 😁
This works, however the user who will be creating these items does not have any technical skills/html. Do you have any advice?
Hi @knishal,
1. Disable the RTE setting in your text field.
2. Write the mark-up yourself in the list item.
Below is an example
<strong>Hello World</strong>
<br>
<p><em>This my first paragraph</em></p>
<br>
<p>This is my next paragraph</p>
3. Use the output of that field in the Send an HTTP request action.
Still need help with this 😥
@Expiscornovus thank you, is it possible to provide an example?
Hi @knishal,
You could disable the RTE option on the text field and write the HTML mark-up yourself in the Multiline field of the list 😉
This way you don't have to find/replace or regex the original field value.
@Expiscornovus @srduval is there a less complicated solution for this?
The first idea that comes to mind is to break the tags via find and replace prior to running it through the HTML to text. Try replacing '<h3' with '~H3~' you might have to do it on the closing tag as well. I don't know for certain what the HTML to text does, but my guess is it's a collection of regex find and replace statements that removes all the HTML tags.
If you have SQL you could probably find a similar collect of regex that you could tweak to make your own HTML to text, or office type scripts is another possible idea