Skip to content

Commit 685c88e

Browse files
committed
Fix whitespace to match upstream
1 parent 360ab1d commit 685c88e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/htmLawed/htmLawedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function hexdump($d) {
116116
$hexi = $ascii = '';
117117
$offset += 16;
118118
$j = 0;
119-
// Add newline
119+
// Add newline
120120
if ($i !== $len - 1) {
121121
echo "\n";
122122
}
@@ -286,7 +286,7 @@ function hexdump($d) {
286286
/*]]>*/
287287
--></style>
288288
<script type="text/javascript"><!--//-->
289-
<![CDATA[//><!--
289+
<![CDATA[//><!--
290290
window.name = 'hlmain';
291291
function hl(i) {
292292
<?php if (!$_hilite) {

src/htmLawed/htmLawed_README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ A PHP Labware internal utility - http://www.bioinformatics.org/phplabware/intern
498498
`Output`: '<input title="depth" value="10em" /><input title="depth" class="ic1" />'
499499

500500
*Special characters*: The characters ';', ',', '/', '(', ')', '|', '~' and space have special meanings in the rules. Words in the rules that use such characters, or the characters themselves, should be `escaped` by enclosing in pairs of double-quotes ('"'). A back-tick ('`') can be used to escape a literal '"'. An example rule illustrating this is 'input=value(maxlen=30/match="/^\w/"/default="your `"ID`"")'.
501-
501+
502502
*Attributes that accept multiple values*: If an attribute is 'accesskey', 'class', or 'rel', which can have multiple, space-separated values, htmLawed will parse the attribute value for such multiple values and will test each of them individually.
503503

504504
*Note*: To deny an attribute for all elements for which it is legal, '$config["deny_attribute"]' (see section:- #3.4) can be used instead of '$spec'. Also, attributes can be allowed element-specifically through '$spec' while being denied globally through '$config["deny_attribute"]'. The 'hook_tag' parameter (section:- #3.4.9) can also be possibly used to implement a functionality like that achieved using '$spec' functionality.
@@ -1348,7 +1348,7 @@ A PHP Labware internal utility - http://www.bioinformatics.org/phplabware/intern
13481348

13491349

13501350
1.1.22 - 5 March 2016. Improved testing of attribute value rules specified in '$spec'.
1351-
1351+
13521352
1.1.21 - 27 February 2016. Improvement and security fix in transforming 'font' element.
13531353

13541354
1.1.20 - 9 June 2015. Fix for a potential security vulnerability arising from unescaped double-quote character in single-quoted attribute value of some deprecated elements when tag transformation is enabled; recognition for non-(HTML4) standard 'allowfullscreen' attribute of 'iframe.'

0 commit comments

Comments
 (0)