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 } }
https://mexicanpharm24.cheap/# reputable mexican pharmacies online
ed cures
best over the counter ed pills cheap pharmacy online over the counter ed
cheap pills online: cheaper medications – best natural ed treatment
The Under-Appreciated Benefits Of Psychiatrist Near Me prescribing psychiatrist Near
me (https://High-meincke-2.technetbloggers.de/how-to-tell-if-youre-prepared-for-psychiatrist-doctor-near-by-me)
my site – Wilton
viagra without doctor prescription https://mexicanpharm24.cheap/# best online pharmacies in mexico
best erection pills affordable medication ed meds
top erection pills: cheap medication – ed prescription drugs
See What How Much Is A Private ADHD Assessment UK Tricks The Celebs
Are Using private adhd assessment uk
remedies for ed https://mexicanpharm24.cheap/# mexico drug stores pharmacies
pharmacy online: cheap medication – natural ed medications
About 19.70 of families and 24.00 of the population have been under the poverty line, together with 33.80 of these below age 18 and 18.30 of those age sixty five or over.
buy prescription drugs from india: India pharmacy international – india pharmacy
Invoice Cosby grew to become instrumental in changing this practice when he refused to be doubled by painted down stuntmen on I Spy.
Additionally, one must be careful sufficient while utilizing the product as they will have an effect on the PH levels of the water to a great extent, and can cause major skin issues if overused.
Because of this, the Allied forces met little resistance as they moved inland.
mexican drugstore online: mexico pharmacy – medicine in mexico pharmacies
They’re the go-to for longer writing stints, providing a sooner typing velocity with much less fatigue.
The Best Accident Injury Lawyers Near Me Tricks For Changing
Your Life best accident Injury lawyers (https://telegra.ph)
ed medications over the counter cheap drugs online buy cheap prescription drugs online
An avant-garde celebration of music and art within the Black Rock Desert, the place for a couple of days attendees create their very own mini metropolis.
S’mores stands for “some extra.” Woman Scouts probably invented these graham cracker sandwiches of melted chocolate and toasted marshmallow, back in the 1920s.
Even rustic Adirondack chairs, the colorful Native American blankets and rugs of the Southwest, backyard furniture from across the Atlantic, and early 19th-century porcelain china have discovered a spot in nation style.
The 9 Things Your Parents Taught You About Best Car Accident Lawyer
Near Me Car Accident Lawyer Near Me
http://mexicanpharm24.cheap/# purple pharmacy mexico price list
otc ed pills
The world of fierce gaming has undergone a remarkable
shift in recent years, with the rise of esports as a global hype.
Amidst this rapidly changing landscape, one name has emerged as a trendsetter – Spade
Gaming.
Spade Gaming is a dominance to be reckoned with,
a gaming company that has carved out a unique specialty for itself by blending cutting-edge innovation , strategic vision , and
a unyielding commitment to excellence .
Established with the goal of reimagining the boundaries of fierce gaming, Spade Gaming has quickly become a exemplar of novelty , driving the realm forward with its trailblazing
approach and determined dedication.
At the foundation of Spade Gaming’s accomplishment
lies its determined drive on contender development and collective building.
The conglomerate has cultivated an habitat that empowers and strengthens its contenders ,
providing them with the supplies , instruction , and support they
need to achieve new crescendos.
But Spade Gaming’s influence extends far beyond the reach of
the parameters of the game itself . The establishment has
also consolidated itself as a trailblazer in the discipline of content
creation, maximizing its expansive pool of talented
practitioners to develop spellbinding and engaging
commentary that strikes a chord with enthusiasts
spanning the global landscape.
Furthermore , Spade Gaming’s devotion to community duty and societal collaboration
separates it matchless from its competitors . The company has
exploited its platform to promote crucial initiatives
, tapping into its impact and authority to catalyze a consequential mark
in the ecosystem of esports and beyond .
As the competitive gaming landscape presses forward to
metamorphize, Spade Gaming dominates as a radiant archetype of what can be accomplished when planning ,
ingenuity , and a unyielding mission of prowess synergize.
In the time to eventuate, as the world of intense
gaming prevails to enthrall aficionados and transform
the way we interact with leisure , Spade Gaming will assuredly persist
at the cutting edge , guiding the movement and
constructing a innovative time in the ceaselessly evolving
landscape of esports.
my site: online casino user experience
New York, NY: The Museum of Arts and Design.
online shopping pharmacy india: indian pharmacy purchase online – top online pharmacy india
10 Tell-Tale Signs You Need To Get A New Remote Key Repair Car Remote Key Repair (Posteezy.Com)
reputable indian pharmacies Indian pharmacy worldwide delivery indian pharmacy paypal