Recent Topics

1 Aug 31, 2005 21:07    

Hi there b2evo guys,

I'd like to propose a way to disable HTML checking within PRE tags in blog posts when a variable has been set. This goes in line with [url=http://forums.b2evolution.net/viewtopic.php?p=24874]this thread[/url]. Take a look at this messages:

http://forums.b2evolution.net/viewtopic.php?p=24936#24936
http://forums.b2evolution.net/viewtopic.php?p=24936#24936

This is a simple modification to the file b2evocore/_class_htmlchecker.php that allows (possibly via the file conf/_formatting.php) the administrator to set a variable that allows disabling HTML checking for any piece of code in a post that is enclosed with a PRE tag that has a LANG attribute defined.

This functionality would allow more flexibility for building plugins (such as the one describe at the thread, which is a Syntax Highlighter) without having to disable HTML checking alltogether.

2 Sep 01, 2005 10:24

I'd like to see this feature in next b2evolution version

3 Sep 05, 2005 22:18

The clean way to do this would be to parse and sanitize the highlighted code before the html checker is called.

A hook for this can easily be added with the phoenix plugin architecture.

It can't be done easily with the 0.9 architecture. Thus in 0.9 it has to be a hack.

If anyone want to add the clean hook in CVS, you're welcome.


Form is loading...