Skip to content

Commit ace37af

Browse files
committed
fix: call html_entity_decode() with explicit params and catch single-quotes
1 parent 1051357 commit ace37af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public function html_entity_decode( $str, $field_name, $enabled = false ) {
520520
return $str;
521521
}
522522

523-
return html_entity_decode( $str );
523+
return html_entity_decode( $str, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8' );
524524
}
525525

526526
/**

0 commit comments

Comments
 (0)