diff --git a/NEWS b/NEWS
index a0fd34d7..95735f14 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+ - fix html_options to not escape already escaped entities (Monte)
- send Last-Modified header on cache creation (Monte)
- check strict syntax of function attributes (Monte)
- dropped support for modifers on object parameters,
diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php
index 450524da..068164a0 100644
--- a/libs/plugins/function.html_options.php
+++ b/libs/plugins/function.html_options.php
@@ -38,11 +38,11 @@ function smarty_function_html_options($params, &$smarty)
function smarty_function_html_options_optoutput($key, $value, $selected) {
if(!is_array($value)) {
- $html_result = '' . "\n";
} else {
$html_result = smarty_function_html_options_optgroup($key, $value, $selected);
}
@@ -50,7 +50,7 @@ function smarty_function_html_options_optoutput($key, $value, $selected) {
}
function smarty_function_html_options_optgroup($key, $values, $selected) {
- $optgroup_html = '