diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-18 10:46:43 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-18 10:46:43 +0000 |
commit | 98758a5688655a35e043b6a39868166820c90109 (patch) | |
tree | e49d9106aac1e0566aa9b09f7442dae46149bbbf /src/driver/svg.php | |
parent | 4dd974341fc9ab5fd36a8db4ed087c89a3295950 (diff) | |
download | zetacomponents-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.php | 4 |
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' ); |