You seem to have found a simpler solution than I did! But I managed
to get a number of details fixed I am very happy about, and was able
to strip out a few lines of code here and there as redundant
(hopefully). Now you can preserve < and > successfully in the
source--and display properly in source, code or /= =/ markups. And
code pages. A lot of work for a little progress...
I haven't been able to get the same functionality for $ but the
solution is to fix the markup rules (end:lines)--which is triggering
php variable substitutions for some reason. If I can fix that--we
should be able to remove all extra handling of $ and not need fancy
work arounds like we do for <. So I'm not going to fix that now. The
solution is to fix the regex or whatever is happening.
I've been using this on my test page
<markup>
&
&
| |
©
{title}
$pageLink
$$test
$ $
< < > >
</markup>
Same with /= =/ and, without the markup wrapper on a code page. And
then pulling the content via source functions. I'll get out another
release here shortly...
Cheers,
Dan
On Wed, Oct 14, 2009 at 3:43 AM, Hans <[email protected]> wrote:
>
> 2009/10/14 Hans <[email protected]>:
>> Seeing html special characters codes in code pages, rather than the
>> characters,
>> is caused in markups.php function BOLTMcode() line 152:
>>
>> $code = htmlspecialchars($code, ENT_NOQUOTES);
>>
>> which causes already encoded characters to be encoded again:
>> for example > is encoded as &gt;
>>
>> commenting out the line removes the problem.
>
> hmmm, commneting it out also gives the problem with <markup>...<markup>
>
> So I suggest to do instead with that line this:
>
> if ($type == 'markup') $code = htmlspecialchars($code, ENT_NOQUOTES);
>
> both problems seem to have gone now.
> code pages look good,
> <markup> works,
> /= ...=/ escapes work as well (worked before).
>
> cheers,
> Hans
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---