commit 2025-08-16 34:34
git add ZCppMain/ZMainHead.H git add ZCppMain/ZtCArray.H git add ZCppMain/ZtCObjList.H git add ZCppMain/ZMainAVL.H git add ZCppMain/ZMainHeadEx.H git add ZCppMain/ZMainXhtml.H git add ZCppMain/ZtCLoadDataBlock.H git add ZCppMain/ZtCMainChars.H git add ZCppMain/ZtCObjAVL.H git add ZCppMain/ZtCStringEx.H git add ZCppMain/ZtCTreeData.H
This commit is contained in:
38
ZCppMain/ZMainXhtml.H
Normal file
38
ZCppMain/ZMainXhtml.H
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
#ifndef __ZCPPMAIIN__ZMAINXHTML_H__
|
||||
#define __ZCPPMAIIN__ZMAINXHTML_H__
|
||||
|
||||
|
||||
namespace ZNsMain
|
||||
{
|
||||
|
||||
template<typename TStringData> TStringData& ZftConvertXhtml(TStringData& ARR_CString)
|
||||
{
|
||||
/* <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20>״<EFBFBD><D7B4><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD>
|
||||
HTML <20>±<C2B1> ȥ<><C8A5><EFBFBD><EFBFBD> <20><> <20>ִµ<D6B4> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ڵ<EFBFBD><DAB5>Ѵ<EFBFBD>.
|
||||
*/
|
||||
return ARR_CString.
|
||||
Replace("&" ,"&" ). Replace("<" ,"<" ).
|
||||
Replace(">" ,">" ). Replace(" " ," " ).
|
||||
Replace("\n","<br />" );
|
||||
}/*
|
||||
template<typename TStringData> static TStringData& ConvertXhtml(TStringData& ARR_CString) */
|
||||
|
||||
template<typename TStringData> TStringData& ZftConvertXhtmlAtt(TStringData& ARR_CString)
|
||||
{
|
||||
// X(H)TML <20><> <20>Ӽ<EFBFBD><D3BC><EFBFBD> <20><> <20><> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ڵ<EFBFBD><DAB5>Ѵ<EFBFBD>.
|
||||
|
||||
return ARR_CString.
|
||||
Replace("&" ,"&" ). Replace("<" ,"<" ).
|
||||
Replace(">" ,">" ). Replace("\"",""" ).
|
||||
Replace("\r","
" ). Replace("\n","
" );
|
||||
}/*
|
||||
template<typename TStringData> TStringData& ZftConvertXhtmlAtt(TStringData& ARR_CString) */
|
||||
|
||||
}/*
|
||||
namespace ZNsMain*/
|
||||
|
||||
|
||||
#endif // __ZCPPMAIIN__ZMAINXHTML_H__
|
Reference in New Issue
Block a user