So, now that we figured out a bug/previously unknown implementation
detail, any chance someone can help me with my original problem?
The HTML data is being stored in the DB correct, as has been
confirmed, and when I try to display it in the 'show' view, even when
using the XML function, it still displays escaped.
Here is the relevant part of my 'show' view:
<div class="post">
<h1>{{=post.title}}</h1>
<p>Author: {{=post.author}} Date: {{=post.date_created}}</p>
[ {{=A('edit', _href=URL(r=request, f='edit',
args=request.args))}} ]
<p id="body">{{=XML(post.body, sanitize=True)}}</p>
</div>
Thanks for any help.
-Nick
On Oct 30, 2:48 pm, Nick Jennings <[email protected]> wrote:
> Aha, I thought massimo was referring to the python shell which is in
> the admin interface.
>
> When I print the body from the show controller, then view record, this
> is what comes up on the console:
>
> <p>dfsdf s<strong>df sd sdghjf</strong>ghjfgjh fs</p>
> <p>kk</p>
> <p>'</p>
> <p>k<em>k;</em>'</p>
> <p>k<strong>'</strong></p>
> <p><strong>;;'</strong></p>
> <p>jklkl;lhj<strong>jfghjkfhkfhjkfhjkfhjkfhjkfhjkfh</strong></p>
>
> When I view the source of the record:
>
> <p>dfsdf s<strong>df sd sdghjf</strong>ghjfgjh fs</p>
> <p>kk</p>
> <p>'</p>
> <p>k<em>k;</em>'</p>
> <p>k<strong>'</strong></p>
>
> <p><strong>;;'</strong></p>
> <p>jklkl;lhj<strong>jfghjkfhkfhjkfhjkfhjkfhjkfhjkfh</
> strong></p>
>
> On Oct 30, 1:39 pm, Jon Romero <[email protected]> wrote:
>
> > inside your code put:
> > print post.body
>
> > and then check the console/terminal from which you've started web2py.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---