I am currently trying to echo a text value from a variable which contains html-style tags. <...>
$string = "variable_name";
$tag_str = "<".$string.">";
echo $tag_str;
currently this echo's as nothing as it believes it is html code. How would I go about echoing <variable_name>
to the page so it is viewable and not interpreted as code by the browser?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…