简体   繁体   English

PHP在浏览器中显示html标签

[英]Php showing html tags in browser

PHP is not encoding html tags and instead of this its simply printing html tags in the 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="">

Since the HTML looks ok to me, I think it is not a PHP problem, but a problem of the server / browser configuration - the browser shows the HTML as text instead of interpreting it. 由于HTML对我来说看起来不错,因此我认为这不是PHP问题,而是服务器/浏览器配置问题-浏览器将HTML显示为文本而不是对其进行解释。 @Arjun: What webserver do you use? @Arjun:您使用什么网络服务器? What is the name of the PHP file (ending with .php)? PHP文件的名称是什么(以.php结尾)? Which browser do you use? 您使用哪个浏览器?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM