Legacy String Strategies for Producing HTML

0
1
a9a9
a9a9

a9a9 I am at all times a9a9 actually excited to see new a9a9 strategies on JavaScript primitives. a9a9 These additions are acknowledgement that a9a9 the language must evolve and a9a9 that we’re doing thrilling new a9a9 issues. That being mentioned, a9a9 I someway simply found some a9a9 legacy String strategies that you a9a9 just in all probability should a9a9 not use however have existed a9a9 ceaselessly. Let’s have a a9a9 look!

a9a9 a9a9 a9a9

a9a9 These legacy string strategies take a9a9 a primary string of textual a9a9 content and wrap it in a9a9 a HTML tag of the a9a9 identical title:

a9a9 a9a9 a9a9
 a9a9 
"Hey".massive() // "<massive>Hey</massive>"
"Hey".blink() // "<blink>Hey</blink>"
"Hey".daring()  a9a9 // "<b>Hey</b>"
"Hey".italics() // "<i>Hey</i>"
"Hey".hyperlink("https://davidwalsh.title") //  a9a9 "<a href="https://davidwalsh.title">Hey</a>"
a9a9 a9a9 a9a9

a9a9 Native prototypes do not often a9a9 take away strategies and for a9a9 good motive — they’ll break a9a9 web sites! I am a9a9 shocked I did not find a9a9 out about these strategies earlier a9a9 than right now. It a9a9 is at all times enjoyable a9a9 to see relics of the a9a9 online previous although!

a9a9 a9a9 a9a9
a9a9 a9a9 a9a9 a9a9
a9a9
a9a9
a9a9 a9a9 a9a9 a9a9
a9a9
a9a9
  • 39 Shirts &#8211; Leaving Mozilla

    a9a9 In 2001 I had simply a9a9 graduated from a small city a9a9 highschool and headed off to a9a9 a small city faculty. I a9a9 discovered myself within the quaint a9a9 laptop lab the place the a9a9 substandard computer systems featured two a9a9 browsers: Web Explorer and Mozilla. a9a9 It was this lab the a9a9 place I fell…

  • Designing for Simplicity

    a9a9 Earlier than we get began, a9a9 it is value me spending a9a9 a quick second introducing myself a9a9 to you. My title is a9a9 Mark (or a9a9 @integralist a9a9 if Twitter occurs to a9a9 be your communication software of a9a9 selection) and I at present a9a9 work for BBC Information in a9a9 London England as a principal a9a9 engineer/tech…

  • Using MooTools ScrollSpy to Load More Items via JSON/AJAX
  • New MooTools Plugin:  ElementFilter

    a9a9 My new MooTools plugin, ElementFilter, a9a9 offers a good way so a9a9 that you can enable customers a9a9 to go looking via the a9a9 textual content of any mixture a9a9 of parts. Merely present a9a9 a textual content enter field a9a9 and ElementFilter does the remainder a9a9 of the work. The XHTML I’ve used a9a9 an inventory for this instance…

a9a9

LEAVE A REPLY

Please enter your comment!
Please enter your name here