<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld" 
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF1060"
	title	= "HTML変換"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<jsp:directive.page import="org.opengion.fukurou.util.StringUtil" />

<form>
<textarea rows="15" cols="80" >
<jsp:scriptlet>
	String html = request.getParameter( "HTML" );

	html = StringUtil.htmlFilter( html );

	html = html.replaceAll( "@","&amp;#064;" );		// トリッキーだが、変換の変換の間で処理する。
	html = StringUtil.htmlFilter( html );

	out.print( html );
</jsp:scriptlet>
</textarea>
</form>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
