I think I know what caused this. I put a BOLTstripslashes on escaped
output in order to allow javascript in the snippets. But here is
another seeming way to do it. Let me know if this doesn't solve the
problem for your application as well:

engine.php, line 705. Get rid of BOLTstripslashes to look like this:

        if($reverse == false) return preg_replace('/\~\~([0-9]+)\~\~/e',
'$Token[$1]', $x);

markup.php, line 81. Add the strip slashes to the nolines markup:

MarkUp('end', 'nolines',
'/(&lt;|<)nolines(&gt;|>)(.*?)(&lt;|<)\/nolines(&gt;|>)/se',
'BOLTescape(BOLTstripslashes("$3"))');  // <nolines>

With this you can put the following in code.snippets:

[[#alert]]
<nolines>
<script language="javascript" type="text/javascript">
alert('This is what an alert message looks like.');
</script>
</nolines>
[[#end]]

Then put $$alert in a page to get the javascript inserted.  If this
works for you I'll add these two changes back into the core for the
next release.

Cheers,
Dan

P.S. We may have to try a couple different possibilities till we get
it all working right. We may need separate markups in code.snippets
for code that needs to be run through domarkup and code that should be
inserted directly. We'll just tinker until we get it right.

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