Ran into this on a number of pages where the user used the & symbol in
either the document itself or in a title, header etc...  That is a reserved
character in XHTML and needs to be output as & a m p ; (all together of
course)..

I tried to escape it various ways without success.  Gave up at the time
because I had larger fish issues..

On Wed, Oct 7, 2009 at 6:04 AM, The Editor <[email protected]> wrote:

>
> On Wed, Oct 7, 2009 at 8:50 AM, blues <[email protected]> wrote:
> >
> > On Oct 7, 3:12 pm, The Editor <[email protected]> wrote:
> >> It seems to be a problem/feature of how html works. If you create a
> >> page, save &nbsp; to it and save. It will be saved unchanged in the
> >> source.  If you edit it, and look at the html source of the output
> >> page, it is still there inside the text box--but the text box displays
> >> it as a regular space. Which is what BoltWire gets back when the form
> >> is submitted the second time.
> >
> > usually other cms use to convert any & in &amp; when rendering the
> > html. that way &nbsp; will be converted in &amp;nbsp; in the html
> > source of the textbox, thus being displayed correctly &nbsp;
> > hope this helps.
>
> Right, but then I need to unconvert about 5 or 6 entries back, which
> are supposed to be escaped, but invisible in the output.
>
>        BOLTreplace('~~', '&#126;&#126;');
>        BOLTreplace('$', '&#36;');
>        BOLTreplace('&#39;', '\'');
>        BOLTreplace('&#34;', '"');
>        BOLTreplace("\r\n", "\n");
>        BOLTreplace("\r", "\n");
>        BOLTreplace('~data~', '&#126;data&#126;');
>        BOLTreplace('<', '&lt;');
>
> And some only in certain situations... Like code pages...
>
> So this is easier but if we need a more thorough solution, we can do it.
>
> Cheers,
> Dan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to