Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{{unescape}}} Inside <Title:> #20

Closed
uipoet opened this issue Mar 27, 2012 · 7 comments
Closed

{{{unescape}}} Inside <Title:> #20

uipoet opened this issue Mar 27, 2012 · 7 comments

Comments

@uipoet
Copy link

uipoet commented Mar 27, 2012

HTML entity unescaping with {{{Cr&egrave;me Br&ucirc;l&eacute;e}}} worked as advertised for me in the <Body:>, though seems to be ignored in the <Title:>.

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

The {{{item}}} is supposed to output something unescaped. The default behavior is to escape everything. (This syntax will be changing in the next release, but that's what it should do in the current release.) Is this what you wanted? What are you trying to output?

HTML entities like &ndash; can be placed directly in <Title:>, just like in other templates.

@uipoet
Copy link
Author

uipoet commented Apr 3, 2012

I originally wrote the problem backwards. The issue is unescaping not working in the <Title:>. I added the example string that I used where it worked correctly in the <Body:>.

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

Oh, I see. Braces indicate you want to do a variable replacement regardless of whether they are escaped or not. If you want to output text literally, you should not put it in braces. Just do:

<Title:>Cr&egrave;me Br&ucirc;l&eacute;e

@uipoet
Copy link
Author

uipoet commented Apr 3, 2012

The entities are contained within a variable. My full title is a mix:

<Title:>
  {{{title}}} - Website Name

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

Ohhh. Sorry, now I understand what you mean. Yeah, that's definitely a bug. I'll fix it.

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

OK, just fixed. Thanks for the report.

@nateps nateps closed this as completed Apr 3, 2012
@uipoet
Copy link
Author

uipoet commented Apr 3, 2012

No problem. Thanks for the quick turnaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants