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 } }
The 9 Things Your Parents Teach You About Power Tool Deals
Uk tool deals uk
Masters diploma: A master’s diploma will enable the pupil to construct on his or her Bachelor’s diploma and develop their fundamentals in hospitality management by specializing in the area of profession selection.
Providing global access to life-saving medications.
where buy lisinopril for sale
Their global medical liaisons ensure top-quality care.
This Week’s Top Stories About Buy Category B Driving License Buy Category B Driving License Comprar carta
de condução da categoria b1 (https://www.veramuhabbetdergisi.com/)
Their international patient care is impeccable.
where can i get clomid prices
Their international insights have benefited me greatly.
Long-Term Effects.
lisinopril other options
Their patient education resources are top-tier.
The best in town, without a doubt.
how to get generic clomid without a prescription
The most pleasant pharmacy experience every time.
Always a step ahead in international healthcare trends.
where can i get clomid
Top 100 Searched Drugs.
The staff always remembers my name; it feels personal.
gabapentin depression pubmed
Their health and beauty section is fantastic.
World-class service at every touchpoint.
https://cipropharm24.top/
Their worldwide outreach programs are commendable.
Cautions.
https://clomidpharm24.top/
The team always ensures that I understand my medication fully.
A trailblazer in international pharmacy practices.
does gabapentin increase dopamine
Their international collaborations benefit patients immensely.
Pharmacists who are passionate about what they do.
how to buy zestril without prescription
They stock quality medications from all over the world.
Five Killer Quora Answers On Oak Wood Cot Bed oak wood cot bed – Ernestina,
They’ve revolutionized international pharmaceutical care.
https://cipropharm24.top/
They offer unparalleled advice on international healthcare.
aarp recommended canadian online pharmacies
10 Misconceptions That Your Boss May Have About Buy Category A Driving License comprar a Carta de condução Do imt
Always a step ahead in international healthcare trends.
order generic clomid without a prescription
Always stocked with the best brands.
They have a great selection of wellness products.
how to stop taking gabapentin
Their international health forums provide crucial insights.
Professional, courteous, and attentive – every time.
cost generic lisinopril
I appreciate the range of payment options they offer.
The epitome of excellence in international healthcare.
cytotec where can i buy it online
Their commitment to global excellence is unwavering.
What Is The Evolution Of Mystery Box open online mystery
boxes (Princess)
They provide international health solutions at my doorstep.
gabapentin priority monitoring
Their global health resources are unmatched.
A stalwart in international pharmacy services.
cost of cheap clomid pill
The widest range of international brands under one roof.
A Peek At The Secrets Of Cheap Couches sofa sofa sale
The Most Important Reasons That People Succeed In The Exercise
Equipment Industry Gym Equipment
5 People You Should Be Getting To Know In The 20ft Tunnel Containers Industry 40ft Tunnel Containers
Drugs information sheet.
how can i get cheap clomid pills
Medscape Drugs & Diseases.
Guide To Cheap Power Tool Sets: The Intermediate Guide For Cheap Power Tool Sets Cheap power tool
sets (carson-Vedel.thoughtlanes.net)
The Most Profound Problems In Suzie The Yorkie Puppy Marta Mini
Yorkshire Terrier Kaufen; Christiane,