Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Output raw HTML to template
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
asdfg  
View profile  
 More options May 26 2011, 11:17 am
From: asdfg <m...@rkh.co.uk>
Date: Thu, 26 May 2011 08:17:21 -0700 (PDT)
Local: Thurs, May 26 2011 11:17 am
Subject: Output raw HTML to template

I've got a Textarea placeholder in my template that will be used to paste a
YouTube iframe embed link into.

Obviously I want this to be output in the template as raw HTML but as soon
as I save the page in the admin, it converts the angle brackets into their
character entity equivalents.

I can't seem to find a way round this. Is there something I'm missing...?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hamish Gough  
View profile  
 More options May 26 2011, 3:48 pm
From: Hamish Gough <captainm...@gmail.com>
Date: Thu, 26 May 2011 20:48:14 +0100
Local: Thurs, May 26 2011 3:48 pm
Subject: Re: Output raw HTML to template
On 26/05/11 16:17, asdfg wrote:
> I've got a Textarea placeholder in my template that will be used to
> paste a YouTube iframe embed link into.

> Obviously I want this to be output in the template as raw HTML but as
> soon as I save the page in the admin, it converts the angle brackets
> into their character entity equivalents.

> I can't seem to find a way round this. Is there something I'm missing...?

Are you using something like TinyMCE or WYMEditor for the widget? Maybe
just try placeholder foo with TextArea to get plain text - youll need to
use  fialedname|safe for the output in your template as well, to stop it
from being escaped.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asdfg  
View profile  
 More options May 27 2011, 3:44 am
From: asdfg <m...@rkh.co.uk>
Date: Fri, 27 May 2011 00:44:18 -0700 (PDT)
Local: Fri, May 27 2011 3:44 am
Subject: Re: Output raw HTML to template

No, I'm just using a plain old Textarea, but the encoding is happening as
soon as I hit save, so template tags/filters have no effect.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asdfg  
View profile  
 More options May 31 2011, 4:41 am
From: asdfg <m...@rkh.co.uk>
Date: Tue, 31 May 2011 01:41:21 -0700 (PDT)
Local: Tues, May 31 2011 4:41 am
Subject: Re: Output raw HTML to template

Anyone able to shed any more light on this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asdfg  
View profile  
 More options May 31 2011, 4:53 am
From: asdfg <m...@rkh.co.uk>
Date: Tue, 31 May 2011 01:53:31 -0700 (PDT)
Local: Tues, May 31 2011 4:53 am
Subject: Re: Output raw HTML to template

Ah, such a simple answer in the end! The PAGE_SANITIZE_USER_INPUT setting
needed changing to False.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »