簡體   English   中英

PHP在瀏覽器中顯示html標簽

[英]Php showing html tags in browser

PHP不對html標簽進行編碼,取而代之的是,它只是在瀏覽器中打印html標簽。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#">
<head>

<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link href="https://sds.com//sdsd/index.php?storename=all&insertedid=100&references=externalsite&fbrefresh=20140820083315" rel="canonical" />
<meta property="fb:app_id" content="34324324324234324">

<meta property="og:site_name" content=""/>
<meta property="og:title" content="" /> 
<meta property="og:description" content="Number of Links: " /> 
<meta property="og:url" content="https://sss.com/ge/index.php?storename=all&insertedid=100&references=externalsite&fbrefresh=2`enter code here`0140820083315">
<meta property="og:type" content="sdsdsdsd:picture" />
<meta property="og:image" content="">

由於HTML對我來說看起來不錯,因此我認為這不是PHP問題,而是服務器/瀏覽器配置問題-瀏覽器將HTML顯示為文本而不是對其進行解釋。 @Arjun:您使用什么網絡服務器? PHP文件的名稱是什么(以.php結尾)? 您使用哪個瀏覽器?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM