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 } }
buy zithromax online fast shipping zithromax for sale zithromax 500 mg lowest price pharmacy online
https://zithromax.company/# generic zithromax 500mg india
Window Repairs Near Me Tools To Ease Your Daily Lifethe
One Window Repairs Near Me Trick That Every Person Must
Be Able To window repairs near me – https://glamorouslengths.Com,
https://zithromax.company/# zithromax online pharmacy canada
Semaglutide pharmacy price: buy rybelsus – order Rybelsus for weight loss
http://semaglutide.win/# rybelsus price
zithromax online paypal
http://semaglutide.win/# Buy compounded semaglutide online
zithromax 500mg over the counter
Rybelsus 7mg: rybelsus – Rybelsus 7mg
cheap stromectol cheapest stromectol ivermectin cost
amoxicillin 500 mg price: amoxil best price – amoxicillin no prescipion
https://zithromax.company/# zithromax online pharmacy canada
The Next Big Thing In The Leeds Windows Industry patio door repair Leeds
https://stromectol.agency/# ivermectin uk
https://amoxil.llc/# amoxicillin 500mg buy online uk
Buzzwords De-Buzzed: 10 Alternative Ways Of Saying Private
ADHD Diagnosis UK Private Adhd Assessment Cornwall
Get To Know Your Fellow 3 Wheeled Buggy Enthusiasts.
Steve Jobs Of The 3 Wheeled Buggy Industry 3 wheel Umbrella stroller
เนื้อเรื่อง ของบล็อกนี้น่าสนใจ มากๆ ครับ ผมชอบวิธีการ ตรวจสอบ ประเด็นต่างๆ อย่าง รอบคอบ และมีเหตุผล
ชัดเจน เป็นการช่วยให้ผู้อ่านเข้าใจ ประเด็นได้ลึกซึ้ง มากขึ้น
คุณเขียนได้อย่างเป็นระบบ และ น่าเอาใจใส่ซึ่งเป็นสิ่งสำคัญสำหรับบทความระดับนี้
นอกจากนั้น ผมยังชอบ ความเห็นใหม่ๆ
ที่คุณได้นำเสนอ ซึ่งเป็นสิ่งที่ไม่เคย คิดมาก่อน มันช่วยขยาย ทัศนคติ และ ความเข้าใจ ของผมไปในทิศทางที่ ขยายขอบเขตขึ้น ผมขอขอบคุณที่คุณได้ สื่อสารความรู้และประสบการณ์ ของคุณ มันช่วยให้ผมได้ ปรับปรุงตัวเอง มากขึ้นอย่างแน่นอน
ผมหวังว่าจะได้ สร้างปฏิสัมพันธ์บทความอื่นๆ ของคุณในอนาคตเช่นกัน
เพราะผมมั่นใจว่าจะมี
คุณค่า และเป็นการ พัฒนา
ความรู้ให้กับผมอย่างแน่นอน ขอบคุณมากครับ!
Here is my page – การเล่นเกมไพ่แบล็คแจ็ค
(writeablog.net)
Five Tools Everybody Involved In Mazda 2 Key Fob Industry Should Be Utilizing car
https://stromectol.agency/# minocycline generic name
cheap Rybelsus 14 mg Rybelsus 14 mg rybelsus price
http://semaglutide.win/# Buy compounded semaglutide online
where can i get zithromax over the counter
http://gabapentin.auction/# medicine neurontin 300 mg
neurontin cost uk buy gabapentin neurontin 800 mg tablets
Nine Things That Your Parent Teach You About Affordable SEO Company
UK affordable seo company uk (Vernon)
10 Failing Answers To Common Audi Replacement Key
Questions Do You Know The Right Ones? Audi q7 key
https://stromectol.agency/# minocycline indications
An Guide To Psychiatric Disability Assessment In 2023 psychiatric Assessment report;
Wells-Sehested.federatedjournals.com,
where to buy amoxicillin 500mg without prescription: amoxicillin cheapest price – amoxicillin medicine over the counter
http://semaglutide.win/# Rybelsus 14 mg price
http://stromectol.agency/# minocycline pills
zithromax pill