Skip to content

Commit

Permalink
[!]: keep url-encoding if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jun 28, 2016
1 parent b703739 commit 7c5e3fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/voku/helper/HtmlDomParser.php
Expand Up @@ -41,20 +41,21 @@ class HtmlDomParser
* @var array
*/
private static $domLinkReplaceHelper = array(
'orig' => array('[', ']', '{', '}',),
'orig' => array('[', ']', '{', '}', '%'),
'tmp' => array(
'!!!!HTML_DOM__SQUARE_BRACKET_LEFT!!!!',
'!!!!HTML_DOM__SQUARE_BRACKET_RIGHT!!!!',
'!!!!HTML_DOM__BRACKET_LEFT!!!!',
'!!!!HTML_DOM__BRACKET_RIGHT!!!!',
'!!!!HTML_DOM__PERCENT!!!!',
),
);

/**
* @var array
*/
protected static $domReplaceHelper = array(
'orig' => array('&', '|', '+'),
'orig' => array('&', '|', '+',),
'tmp' => array('!!!!HTML_DOM__AMP!!!!', '!!!!HTML_DOM__PIPE!!!!', '!!!!HTML_DOM__PLUS!!!!',),
);

Expand Down

0 comments on commit 7c5e3fd

Please sign in to comment.