I use HTML code inside php like below :
echo '<span class="input-group-addon"><i class="glyphicon
glyphicon-pencil w3-large" name="topic_subject"> subject</i>
</span>
<br />
<textarea name="post_content" id="editor1"></textarea>
<br />
<div class="w3-col s1 m1 l1"><p></p></div>
<div class="w3-left">
<button class = "w3-button w3-xlarge tableButtons w3-middle"
id="save">save</button>
<a onclick="history.go(-1);" class="w3-button w3-xlarge
tableButtons w3-left">cancel</a>
</div>
</form>';
I use single quotes Then i use double quotes instead of backslash to escape . That's way is it safe or no ?