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 } }
5 Killer Quora Answers On Freezer Fridge 50 50 freezer fridge 50 50 (Shelley)
migliori farmacie online 2024: Cialis generico prezzo – top farmacia online
top farmacia online: Farmacia online migliore – farmaci senza ricetta elenco
How Have A Look At About Your Used Casino Poker Chips 프라그마틱 정품 확인법 (aprelium.com)
14 Businesses Are Doing A Fantastic Job At Vibrating Anal Plug anal sex plugs, Ericka,
farmacie online sicure Cialis generico farmacia farmacia online senza ricetta
http://tadalafilit.com/# Farmacia online miglior prezzo
Farmacie on line spedizione gratuita
Guide To Lexus Replacement Key Fob: The
Intermediate Guide The Steps To Lexus Replacement Key
Fob lexus replacement key; Taj,
You’ll Be Unable To Guess Situstoto Slot’s Secrets situstoto slot
(Ola)
Профессиональный сервисный центр по ремонту парогенераторов в Москве.
Мы предлагаем: парогенератор ремонт замена
Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!
The Reasons You Should Experience SEO London At Least Once
In Your Lifetime london seo (Rob)
Farmacia online piГ№ conveniente: Tadalafil generico migliore – comprare farmaci online con ricetta
viagra naturale in farmacia senza ricetta viagra generico esiste il viagra generico in farmacia
Here’s An Interesting Fact Concerning Land Rover
Discovery Keys activity key land rover discovery (Lou)
viagra naturale viagra prezzo viagra prezzo farmacia 2023
5 Clarifications On Private Online Psychiatrist
private psychiatrist cost (Renate)
comprare farmaci online con ricetta Farmacie on line spedizione gratuita Farmacie on line spedizione gratuita
10 Saab Car Key Replacement-Related Projects To Stretch Your Creativity lost saab key – Amy –
migliori farmacie online 2024 Farmacia online migliore Farmacie on line spedizione gratuita
14 Questions You Shouldn’t Be Insecure To Ask About Renault Key Card renault key
not recognised (Bernadine)
farmacie online autorizzate elenco: Tadalafil generico migliore – acquistare farmaci senza ricetta
acquistare farmaci senza ricetta Tadalafil generico migliore farmacia online piГ№ conveniente
The No. One Question That Everyone Working In Auto Link Building Software Must Know How
To Answer submitter
https://tadalafilit.com/# farmaci senza ricetta elenco
farmaci senza ricetta elenco
comprare farmaci online con ricetta Farmacie che vendono Cialis senza ricetta acquisto farmaci con ricetta
п»їFarmacia online migliore: acquisto farmaci con ricetta – acquistare farmaci senza ricetta
farmaci senza ricetta elenco: Cialis generico 20 mg 8 compresse prezzo – comprare farmaci online con ricetta
п»їFarmacia online migliore farmacia online migliore top farmacia online
Farmacie online sicure: Cialis generico 20 mg 8 compresse prezzo – comprare farmaci online all’estero
Astonishing Blog Write-up
Incredible, what an perceptive and thought-provoking piece !
I discovered myself nodding along as I scanned through your analysis
of this essential subject .
Your points were extensively researched and articulated in a coherent , compelling manner.
I especially appreciated how you were equipped to purify
the essential nuances and intricacies at work , excluding
simplifying or glossing over the obstacles .
This article has presented me a substantial amount to
reflect on . You’ve definitively expanded my
awareness and shifted my perspective in certain significant
fashions .
Appreciation for investing the effort to share your proficiency
on this issue. Entries like this are quite
a invaluable addition to the discourse . I look forward to experiencing what other insightful information you have in
reserve .
Feel free to surf to my page ebet login with number (ebet.free.site.pro)