⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlformat.tag.real

📁 oreilly_JavaServer Pages_3rd Edition_code
💻 REAL
字号:
<%@ taglib prefix="fn" uri="http://java.sun.com/jstl/fn" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ tag body-content="scriptless" %>

<%-- Capture the body evaluation result in a variable --%>
<c:out value="${pageContext.request.servletPath}" />
Before conversion: <c:out value="${bodyRes}"/>
<%-- Convert special characters to character entities --%>
<c:set var="escapedBody" value="${fn:escapeXml(bodyRes)}" />

<%-- Replace "[code]/[/code]" with "<code>/</code>" --%>
<c:set var="convBody" 
  value="${fn:replace(escapedBody, '[code]', '<code>')}" />
<c:set var="convBody" 
  value="${fn:replace(convBody, '[/code]', '</code>')}" />

<%-- Ouput the result --%>
Result: ${convBody}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -