Fix shortener testi

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-31 15:22:12 +02:00
parent 2394f7af55
commit 025af91c1b
+1 -1
View File
@@ -107,7 +107,7 @@ class NotiziaModel extends HasMediaModel{
public function cutTextHtmlSafe($attrName, $size){
$rval = strval( $this->$attrName );
if (strlen($rval) > ($size + 3) ){
$rval = html_entity_decode( $rval );
$rval = html_entity_decode( $rval , ENT_QUOTES|ENT_HTML5 );
$rval = substr($rval, 0, $size);
$rval = htmlentities($rval) . "...";
}