I just started to write PHP code and HTML and i have a problem. I have a function which create HTML code like this:
function test(){
echo "<div style=\"font-size:13px;font-family:Arial\">";
echo "<a href='google.com'>sasa</a>";
echo "</div>";
}
When i call $a = $this->test() i don't want to render the html, just to send to smarty. I already tried with json encode but it is not working. Please help me.