-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add directive for removing blank nodes (#404)
- Loading branch information
1 parent
4828fdf
commit c9d60c9
Showing
7 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
library/HTMLPurifier/ConfigSchema/schema/Core.RemoveBlanks.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Core.RemoveBlanks | ||
TYPE: bool | ||
DEFAULT: false | ||
VERSION: 4.18 | ||
--DESCRIPTION-- | ||
<p> | ||
If set to true, blank nodes will be removed. This can be useful for maintaining | ||
backwards compatibility when upgrading from previous versions of PHP. | ||
</p> | ||
--# vim: et sw=4 sts=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/HTMLPurifier/FixtureData/RemoveBlankTestCaseInput.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<table> | ||
<caption> | ||
Cool Table | ||
</caption> | ||
<tr> | ||
<td> | ||
Element 1 | ||
</td> | ||
</tr> | ||
</table> |
7 changes: 7 additions & 0 deletions
7
tests/HTMLPurifier/FixtureData/RemoveBlankTestCaseOutput.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<table><caption> | ||
Cool Table | ||
</caption> | ||
<tr><td> | ||
Element 1 | ||
</td> | ||
</tr></table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters