[英]Why 'a' convert to  
我有問題。 我使用wordpress,從昨天開始不起作用,鏈接在數據庫中,我有代碼:
<a href="dakjhd">text</a>
但是在WordPress的文本編輯器中
  text  
我不知道為什么要轉換為&nbsp
現在我無法添加鏈接...
請幫忙
在步驟中:
<a href="dakjhd">text</a>
  text  
您的代碼可能使用strip_tags()
從實際的HTML中刪除標簽。 您可以使用html_entity_decode
將其恢復為原始格式。
例:
<?php
$link = '<a href="dakjhd">text</a>';
$a = strip_tags($link);
$b = htmlentities($link);
$c = html_entity_decode($b);
echo $a; // output: text
echo $b; //output: <a href="dakjhd">text</a>
echo $c; //output: the actual link
?>
希望能消除您的疑問!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.