[MGNLSTK-420] after upgrading to magnolia 4.1 Html is rendered in templates Created: 03/Aug/09  Updated: 04/Dec/13  Resolved: 06/Aug/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: kedar Assignee: Philipp Bärfuss
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

after upgrading to magnolia 4.1 if a string has a Html tag

for e.g <p>test</p> the output is <p>test</p> which means it is rendered as pain text and not as a html on the browser. If I think all the html tags are converted to plain text before rendering.We use freemarker templates for rendering

I can see it related to the issue MGNLSTK-328



 Comments   
Comment by Gareth Jones [ 05/Aug/09 ]

Is this bug breaking the fckEditor control? Any plain text entered into a fckEdit dialog now gets rendered with <p> ... </p> around it

Comment by Philipp Bärfuss [ 06/Aug/09 ]

It is indeed related to MGNLSTK-328. The point is that the content object is wrapped into an encoding wrapper object. This guarantees that user can't enter html content in text fields like title, meta tags, ...

To give out the plain content you have to unwrap it with the following code:

${stk.decode(content).text}

You can see that in our text image paragraph.

Generated at Mon Feb 12 07:26:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.