Skip to content

Commit

Permalink
Writing attributes with non-latin values bug.
Browse files Browse the repository at this point in the history
Added parameter 'encoding' to htmlentities call.
  • Loading branch information
tyaga authored and everzet committed Jul 29, 2010
1 parent 2f5faa3 commit 2f63daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/haml/HamlParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ protected function writeAttributes()
$this->writeAttributes($sValue);
}
else if ($sValue !== null && $sValue !== false)
echo " $sName=\"".htmlentities($sValue).'"';
echo " $sName=\"".htmlentities($sValue, null, 'utf-8').'"';
}
}
}
Expand Down Expand Up @@ -1578,4 +1578,4 @@ function display_haml($sFilename, $aVariables = array(), $sTmp = true, $bGPSSC =
$__oHaml->display($sFilename);
}

?>
?>

0 comments on commit 2f63daa

Please sign in to comment.