VBScript에서 일부 html 태그 및 해당 내용을 문자열에서 제거하기위한 정규식을 찾으려고합니다.일부 HTML 태그를 제거하는 방법은 무엇입니까?
문자열이며,
<H2>Title</H2><SPAN class=tiny>Some
text here</SPAN><LI>Some list
here</LI><SCRITP>Some script
here</SCRITP><P>Some text here</P>
지금, 나는, <SPAN class=tiny>Some text here</SPAN>
및 <SCRITP>Some script here</SCRITP>
어쩌면 누군가가 이것에 대한 간단한 솔루션을 가지고 감사를 제외하고 싶습니다.
span.tiny {
display: none;
}
또는 jQuery 사용 :이 VBScript로 트릭을 할해야
$("span.tiny").hide();
원하는 문자열이 어떻게 생각? HTML을 사용하여 수행 한 작업을 수행 한 것으로 보이며 태그를 표시하지 않습니다. – cofiem