rsanchez / json

Output ExpressionEngine data in JSON format.
http://devot-ee.com/add-ons/json/
101 stars 234 forks source link

Getting the <p> tags from a Textarea EE field #69

Open vladyn opened 3 years ago

vladyn commented 3 years ago

Hi Everyone, I'm using this marvelous plug-in to expose something like rest API to be consumed from a Web App. One thing I've noticed though (and have to say - makes things much complicated). When I have an output from a text area of type rich text from a channel - the plug-in strips out the p tags and leaves only the texts, but adds any other HTML tags like h2, h3, etc. My question is: how to get the same output from this field as you see it in EE CP when editing an entry and click "view code"

Screenshot 2021-04-14 at 10 55 05