1042 Posts in 379 Topics by 372 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1341 Views |
-
Output Text without encoding HTML characters

12 May 2010 at 2:36am
I've recently upgraded one of my clients to version 2.4, but I failed to notice an issue when testing.
Pre version 2.4 I could have a variable of the type Text output it's content in a template, in version 2.4 its output is automatically HTML encoded. I can't use HTMLText as this seems to break things. Is there a way to disable the automatic HTML encoding of a Text field?
-
Re: Output Text without encoding HTML characters

14 July 2010 at 3:09am
HTML-Encoding is disabled for ContentController functions. So if you want to pass unencoded values to the template, just create a proxy function in the ContentController.
-
Re: Output Text without encoding HTML characters

22 August 2010 at 6:54am
That's true. Inside your function, you can make use of
to turn back the markups.html_entity_decode()
| 1341 Views | ||
|
Page:
1
|
Go to Top |



