[Moin-user] Selecting text

Thomas Waldmann tw at waldmann-edv.de
Sat May 12 10:46:18 EDT 2012


> I took a naive approach:
> 
> {{{#!html
> <button onclick="javascript:fnSelect('code01');">Hightlight Code</button>
> }}}

The html parser removes potentially dangerous stuff, that includes
javascript code.

You could either use some unsafe html parser (and make sure nobody can
use it for dangerous stuff) or just write a macro that emits the stuff
you need.






More information about the Moin-user mailing list