So that it does not get lost in other threads about latest releases, i
start this topic.

I like to see BW saving HTML character codes and showing the codes in
edit boxes,
showing them in code pages, but let the browser do its default
decoding in normal pages.
Version 3.2.3 saves the codes, but they are not shown as codes in edit boxes.

I did some hacking to see what is possible.

In functions.php I changed in function BOLTFsource
(I believe this is the function retrieving text from source page?)
I commented out this line:
   $out = str_replace(Array('<', '[messages]', '[results]', '&nbsp;'),
Array('&lt;', '&#91;messages&#93;', '&#91;results&#93;',
'&amp;nbsp;'), $out);

and added before the second last line if ($args['escape'] !== 'false')
$out = BOLTescape($out);
this line:
   $out = htmlspecialchars($out, ENT_NOQUOTES);

I am weary about $ReplaceTable, as I think much can be done much
simpler with standard php functions like htmlspecialchars().
Anyway, with these changes my edit box looks fine.

with one exception:  $ is automatically converted to &#36;  and saved to page
I think this is not necessary, and in engine.php
functionBOLTsaveEscapes the line
    BOLTreplace('$', '&#36;');
shall be removed/commented out.

I imagine that quite a bit of conversion code can be removed.

Having done that I get exactly what I want.

What do you think?

--~--~---------~--~----~------------~-------~--~----~
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