From e226efe19ae4b72bc78b89ebc2c4747ea160b80d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 18 Nov 2006 16:43:33 +0100 Subject: hide inline scripts from XML parsers This patch addes some comment magic to inline scripts to hide them from XML parsers (like the W3C CSS validator). darcs-hash:20061118154333-7ad00-c24bc36192080fe34f232c5ec2df3f494993f2fe.gz --- inc/html.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 85349b633..0871bb501 100644 --- a/inc/html.php +++ b/inc/html.php @@ -6,9 +6,9 @@ * @author Andreas Gohr */ - if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); - - require_once(DOKU_INC.'inc/parserutils.php'); +if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); +if(!defined('NL')) define('NL',"\n"); +require_once(DOKU_INC.'inc/parserutils.php'); /** * Convenience function to quickly build a wikilink @@ -362,11 +362,11 @@ function html_search(){ } //show progressbar - print '
'; - print ''; - print "
\n"; + print '
'.NL; + print ''.NL; + print '
'.NL; flush(); //do quick pagesearch @@ -410,9 +410,9 @@ function html_search(){ } //hide progressbar - print ''; + print ''.NL; flush(); } @@ -1102,10 +1102,10 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? target="_blank"> - + //-->
-- cgit v1.2.3