[英]Is there anything like '\f' entity in html?
I was simply outputting a string using echo in php but it got altered and its not showing the exact string.I know about HTML entities little bit but not aware of anything called \\f
entity in HTML, or is something else causing the issue我只是在 php 中使用 echo 输出一个字符串,但它被改变了,它没有显示确切的字符串。我对 HTML 实体有一点了解,但不知道 HTML 中名为
\\f
实体的任何东西,或者是其他原因导致了这个问题
<?php
$orig = "<math>x^2 \frac{d^2 y}{dx^2} + x \frac{dy}{dx} + (x^2 - \alpha^2)y = 0</math>";
echo $orig;
?>
and the output is输出是
<math>x^2 rac{d^2 y}{dx^2} + x rac{dy}{dx} + (x^2 - \alpha^2)y = 0</math>
Hope you noticed \\frac changed to rac.What might be the issue ?希望您注意到 \\frac 更改为 rac。可能是什么问题?
\\f is actually a formfeed
in many languages although it's rarely used. \\f 实际上是许多语言中的
formfeed
,尽管它很少使用。 It's php, not html, that reads the string and changes it.读取字符串并更改它的是 php,而不是 html。 You can read about it here: http://php.net/manual/en/regexp.reference.escape.php
你可以在这里阅读它: http : //php.net/manual/en/regexp.reference.escape.php
Can you simply add a Space between \\
and frac
?你能简单地在
\\
和frac
之间添加一个空格吗?
Just put \ instead of the backslash itself and you should have no problem.只需输入 \ 而不是反斜杠本身,你应该没有问题。 Example \frac
示例 \frac
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.