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 } }
pharmacie en ligne Acheter Cialis Pharmacie en ligne livraison Europe
Running sneakers: You can even broaden your choices by trying into lightweight and breathable working shoes that provide supportive cushioning for hours of strolling.
The stature of ladies versatile strolling canes will be effortlessly modified at any time when which makes this type of ladies cane perfect for regular use.
Fortunately, since MMORPG worlds are usually very massive, there are often a number of opportunities for finding comparable — or even higher — gear.
Selecting the best laptop with excellent specs and qualities is perhaps juggling and extremely confusing process while you see a large number of notebooks with variable specs and costs.
Hoodoo spells for achievement service provides you with new method to live your life by efficiently.
That is a really good tip particularly to those new to the blogosphere. Simple but very accurate info… Many thanks for sharing this one. A must read post!
Protected Journey within your individual bubble.
Pharmacie sans ordonnance: vente de mГ©dicament en ligne – pharmacies en ligne certifiГ©es
A union organizer speaks of “decentralizing” the work of organizing, or developing an organizing model that’s “worker-driven” however “staff-facilitated.” While union organizers stay committed to core principles like having a robust and representative inside organizing committee, one-on-one conversations, strategic escalation, and constructing capability to win a robust contract, a number of the tactics they’ve used to get there have shifted.
In 2004 the same workforce came up with the Jersey Shore Golden Grand Prix, which incorporates five Jersey Shore summer time events beginning with three classics – the Spring Lake 5 in May, the George Sheehan Traditional in Crimson Financial institution in June and the Belmar Five in July.
สร้างเว็บไซต์ระดับมืออาชีพด้วยเทมเพลตฟรีและปรับแต่งได้มากกว่า
100 แบบ พร้อมฟีเจอร์อีคอมเมิร์ซอันทรงพลังเพื่อเพิ่มยอดขายของคุณ เริ่มต้นเส้นทางธุรกิจออนไลน์ของคุณวันนี้ด้วยการตีกลับออนไลน์และทำให้เว็บไซต์ของคุณทำงานได้อย่างรวดเร็ว
My web page คาสิโนออนไลน์ฝากถอนไว
pharmacie en ligne livraison europe pharmacie en ligne pas cher pharmacie en ligne fiable
Viagra femme sans ordonnance 24h: Viagra sans ordonnance 24h – Le gГ©nГ©rique de Viagra
Viagra homme prix en pharmacie viagra sans ordonnance Acheter Sildenafil 100mg sans ordonnance
Achat mГ©dicament en ligne fiable: Cialis generique achat en ligne – pharmacie en ligne france livraison belgique
http://clssansordonnance.icu/# pharmacie en ligne france fiable
Viagra pas cher livraison rapide france: Viagra homme sans prescription – Viagra 100 mg sans ordonnance
Double Glazed Hinges: What Nobody Is Talking About replace Hinges on upvc window
Viagra sans ordonnance 24h suisse Acheter Sildenafil 100mg sans ordonnance SildГ©nafil Teva 100 mg acheter
https://pharmaciepascher.pro/# Pharmacie Internationale en ligne
Профессиональный сервисный центр по ремонту принтеров в Москве.
Мы предлагаем: починить принтер в москве
Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!
Профессиональный сервисный центр по ремонту принтеров в Москве.
Мы предлагаем: ремонт принтера на дому
Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!
When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive 4 emails with the exact same comment. Is there a means you are able to remove me from that service? Appreciate it.
Acheter Sildenafil 100mg sans ordonnance: Viagra sans ordonnance 24h – Meilleur Viagra sans ordonnance 24h
pharmacie en ligne sans ordonnance: pharmacie en ligne sans ordonnance – Pharmacie Internationale en ligne
Viagra 100mg prix: Viagra prix – Viagra sans ordonnance pharmacie France
It Is A Fact That Philips Coffee Machine Senseo Is
The Best Thing You Can Get. Philips Coffee Machine Senseo philips Senseo Coffee machine
pharmacie en ligne sans ordonnance: Cialis generique prix – trouver un mГ©dicament en pharmacie
Viagra gГ©nГ©rique sans ordonnance en pharmacie Acheter du Viagra sans ordonnance Viagra homme prix en pharmacie