mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
[1.3.0] Remove Tidy option from demo if there is not Tidy available
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@563 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
b9e7ba6a2f
commit
94db380271
1
NEWS
1
NEWS
@ -17,6 +17,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
! New directive %HTML.BlockWrapper, for block-ifying inline elements
|
! New directive %HTML.BlockWrapper, for block-ifying inline elements
|
||||||
! New directive %HTML.Parent, allows you to only allow inline content
|
! New directive %HTML.Parent, allows you to only allow inline content
|
||||||
- Added missing type to ChildDef_Chameleon
|
- Added missing type to ChildDef_Chameleon
|
||||||
|
- Remove Tidy option from demo if there is not Tidy available
|
||||||
. ChildDef_Required guards against empty tags
|
. ChildDef_Required guards against empty tags
|
||||||
. Lookup table HTMLDefinition->info_flow_elements added
|
. Lookup table HTMLDefinition->info_flow_elements added
|
||||||
. Added peace-of-mind variable initialization to Strategy_FixNesting
|
. Added peace-of-mind variable initialization to Strategy_FixNesting
|
||||||
|
@ -115,8 +115,10 @@ if (isset($html)) {
|
|||||||
approximately 2000 characters. If you need to test anything
|
approximately 2000 characters. If you need to test anything
|
||||||
larger than that, try the <a href="demo.php?post">POST form</a>.</p>
|
larger than that, try the <a href="demo.php?post">POST form</a>.</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
<?php if (extension_loaded('tidy')) { ?>
|
||||||
<div>Nicely format output with Tidy? <input type="checkbox" value="1"
|
<div>Nicely format output with Tidy? <input type="checkbox" value="1"
|
||||||
name="tidy"<?php if (!empty($_REQUEST['tidy'])) echo ' checked="checked"'; ?> /></div>
|
name="tidy"<?php if (!empty($_REQUEST['tidy'])) echo ' checked="checked"'; ?> /></div>
|
||||||
|
<?php } ?>
|
||||||
<div>XHTML 1.0 Strict output? <input type="checkbox" value="1"
|
<div>XHTML 1.0 Strict output? <input type="checkbox" value="1"
|
||||||
name="strict"<?php if (!empty($_REQUEST['strict'])) echo ' checked="checked"'; ?> /></div>
|
name="strict"<?php if (!empty($_REQUEST['strict'])) echo ' checked="checked"'; ?> /></div>
|
||||||
<div>Serve as application/xhtml+xml? (not for IE) <input type="checkbox" value="1"
|
<div>Serve as application/xhtml+xml? (not for IE) <input type="checkbox" value="1"
|
||||||
|
Loading…
Reference in New Issue
Block a user