summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2014-02-03 15:10:37 +0100
committerAsmir Mustafic <[email protected]>2014-02-03 15:10:37 +0100
commitd6fc8917a347e0adf9bdaab9ac00a66bf7aa7fc5 (patch)
treef5b0563528ea2c9b8741dd81af29326c4d86b5c4
parentfbc3c7e214a4bbbc9e88eb574414a91a0faa2176 (diff)
Removed quote conversion to entity inside content
Encoding quotes inside element contents may be not necessary
-rw-r--r--src/HTML5/Serializer/OutputRules.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php
index bc57346..15e6c6e 100644
--- a/src/HTML5/Serializer/OutputRules.php
+++ b/src/HTML5/Serializer/OutputRules.php
@@ -245,7 +245,7 @@ class OutputRules implements \HTML5\Serializer\RulesInterface {
* The encoded text.
*/
protected function enc($text) {
- $flags = ENT_QUOTES;
+ $flags = 0;
// Escape rather than encode all entities.
if (!$this->encode) {
@@ -254,7 +254,7 @@ class OutputRules implements \HTML5\Serializer\RulesInterface {
// If we are in PHP 5.4+ we can use the native html5 entity functionality.
if (defined('ENT_HTML5')) {
- $flags = ENT_HTML5 | ENT_SUBSTITUTE | ENT_QUOTES;
+ $flags = ENT_HTML5 | ENT_SUBSTITUTE;
$ret = htmlentities($text, $flags, 'UTF-8', FALSE);
}
// If a version earlier than 5.4 html5 entities are not entirely handled.