summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-18 10:46:43 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-18 10:46:43 +0000
commit98758a5688655a35e043b6a39868166820c90109 (patch)
treee49d9106aac1e0566aa9b09f7442dae46149bbbf /src/driver/svg.php
parent4dd974341fc9ab5fd36a8db4ed087c89a3295950 (diff)
downloadzetacomponents-graph-98758a5688655a35e043b6a39868166820c90109.zip
zetacomponents-graph-98758a5688655a35e043b6a39868166820c90109.tar.gz
- Use htmlspecialchars instead of htmlentities
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index b20af5a..da67018 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -697,7 +697,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
// Optionally draw text shadow
if ( $text['font']->textShadow === true )
{
- $textNode = $this->dom->createElement( 'text', htmlentities( $string ) );
+ $textNode = $this->dom->createElement( 'text', htmlspecialchars( $string ) );
$textNode->setAttribute( 'id', $text['id'] );
$textNode->setAttribute( 'x', $position->x + $this->options->graphOffset->x + $text['font']->textShadowOffset );
$textNode->setAttribute( 'text-length', $this->getTextWidth( $string, $size ) . 'px' );
@@ -718,7 +718,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
}
// Finally draw text
- $textNode = $this->dom->createElement( 'text', htmlentities( $string ) );
+ $textNode = $this->dom->createElement( 'text', htmlspecialchars( $string ) );
$textNode->setAttribute( 'id', $text['id'] );
$textNode->setAttribute( 'x', $position->x + $this->options->graphOffset->x );
$textNode->setAttribute( 'text-length', $this->getTextWidth( $string, $size ) . 'px' );
OpenPOWER on IntegriCloud