Java + JS去除網頁HTML標籤
同樣是工作上用到,在前(Javascript)、後端(Java、JSP)同樣都有的一個需求,就是必須將讀入的字串去除HTML Tag,以下是兩個範例:
var HTML = ""; HTML+= "<p>HTML P Tag String</p>"; HTML+= "<p><a href='/test/link.html'>HTML A Tag String</a></p>"; var htmlTagPattern = /<{1}[^>]{1,}>{1}/g; //HTML Tag Pattern var htmlSplit = HTML.replace(htmlTagPattern, ""); //移除HTML Tag console.log("htmlSplit : " , htmlSplit); //輸出htmlSplit : HTML P Tag StringHTML A Tag String
package CDIT.stanley; public class trimHTML { public static void main(String[] args) { String HTML = ""; HTML+= "<p>HTML P Tag String</p>"; HTML+= "<p><a href='/test/link.html'>HTML A Tag String</a></p>"; String htmlTagPattern = "<{1}[^>]{1,}>{1}"; //HTML Tag Pattern String htmlSplit = HTML.replaceAll(htmlTagPattern, ""); //移除HTML Tag System.out.println("htmlSplit : " + htmlSplit); //輸出htmlSplit : HTML P Tag StringHTML A Tag String } }
They’re contrived with good quality elements and termite resistant materials which help to make robust and lengthy lasting end result.
neurontin 50 mg: gabapentin best price – buy neurontin online uk
Тут делают продвижение комплексное продвижение медицинских сайтов seo-продвижение медицинских сайтов
semaglutide rybelsus generic rybelsus cost
Тут делают продвижение сео продвижение медицинских сайтов seo медицина
where can i buy neurontin from canada neurontin 1000 mg neurontin capsule 600mg
https://amoxil.llc/# amoxicillin 500 mg online
https://gabapentin.auction/# neurontin 800 mg price
order zithromax over the counter
http://semaglutide.win/# rybelsus generic
medicine neurontin 300 mg: gabapentin best price – neurontin capsule 600mg
Planning Party Appetizers On Your New Years Eve Party 유흥
http://zithromax.company/# zithromax canadian pharmacy
zithromax drug
rybelsus price: cheap Rybelsus 14 mg – buy rybelsus
What’s The Job Market For 2 In 1 Bassinet Stroller
Professionals? 2 in 1 bassinet stroller
If you or someone you are caring for has been diagnosed with mesothelioma or another
Asbestos Compensation-related
disease, you can receive compensation. Compensation can help offset medical expenses as well as
lost wages and other financial losses.
магазин сейфов предлагает сейф 3 класса цена сейф взломостойкий 3 класс
Courteously fellow viewer ,
I uncovered the perspectives shared in this blog post to be exceptionally
illuminating . The writer’s proficiency of the material
is genuinely commendable.
If you are seeking a exhilarating and beneficial cyber gaming experience ,
I would warmly persuade you to discover the options of VIVARO CASINO.
With its wide-ranging variety of mesmerizing activities ,
abundant bonuses , and smooth environment
, VIVARO CASINO offers an unrivaled entertainment
setting that serves both inexperienced
and proficient participants identically .
I convince you to check out VIVARO CASINO and find
the thrill that is ready to be experienced you.
I am confident you will consider the venture to be most pleasurable .
Sincerest wishes
Also visit my web blog :: online casino promotions
магазин сейфов предлагает купить сейф 3 сейф 3 класса цена
Тут делают продвижение seo для медицинского центра разработка медицинского сайта
10 Mobile Apps That Are The Best For Attorneys For Asbestos Exposure asbestos attorneys
https://gabapentin.auction/# neurontin coupon
zithromax prescription
5 Laws That Will Help The Asbestos Cancer Attorney Industry mesothelioma lawsuits
You’ll Never Guess This Innovative Mobility Scooters’s Tricks
innovative mobility scooters
where can i buy amoxicillin online cheapest amoxil amoxicillin generic
medication neurontin 300 mg: neurontin brand name 800mg best price – neurontin 300mg caps
buy rybelsus rybelsus Buy semaglutide pills
You’ll Never Be Able To Figure Out This Diagnosing
ADHD UK’s Tricks How To get diagnosed with adhd adult
https://semaglutide.win/# buy rybelsus
generic zithromax india
https://semaglutide.win/# Rybelsus 7mg
zithromax 250 mg pill
neurontin tablets 100mg: gabapentin best price – neurontin capsules 100mg