Fn:escapexml () Implements HTML encoding

Source: Internet
Author: User

Label:

<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "%>
<%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%>
<%@ taglib uri= "http://java.sun.com/jsp/jstl/fmt" prefix= "FMT"%>
<%@ taglib uri= "http://java.sun.com/jsp/jstl/functions" prefix= "FN"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<html>
<head>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>insert title here</title>
</head>
<body>

<c:import var= "source" url= "http://www.baidu.com" charencoding= "GBK" ></c:import>

<c:out value= "${source}" Escapexml= "true" ></c:out>

<hr/>
${fn:escapexml (source)}
<hr>

</body>
</html>

Fn:escapexml () Implements HTML encoding

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: