Converting Plain Text To Encoded HTML With Vanilla JavaScript

What do you do when you need to convert plain text into formatted HTML? Perhaps you reach for Markdown or manually write in the element tags yourself. Or maybe you have one or two of the dozens of online tools that will do it for you. In this tutorial, Alexis Kypridemos picks those tools apart and details the steps for how we can do it ourselves with a little vanilla HTML, CSS, and JavaScript. https://smashingmagazine.com/2024/04/converting-text-encoded-html-vanilla-javascript/

Creato 1y | 17 apr 2024, 14:50:06


Accedi per aggiungere un commento

Altri post in questo gruppo

Design Patterns For AI Interfaces

Designing a new AI feature? Where do you even begin? From first steps to design flows and interactions, here’s a simple, systematic approach to building AI experiences that stick. https://smashingmaga

14 lug 2025, 20:20:05 | Smashing magazine
Unmasking The Magic: The Wizard Of Oz Method For UX Research

The Wizard of Oz method is a proven UX research tool that simulates real interactions to uncover authentic user behavior. Victor Yocco unpacks the core principles of the WOZ method, explores advanced

10 lug 2025, 11:50:15 | Smashing magazine
Droip: The Modern Website Builder WordPress Needed

Traditional page builders have shaped how we build WordPress sites for years. Let’s take a closer look at Droip, a modern, no-code visual builder, and explore how it redefines th

8 lug 2025, 13:40:02 | Smashing magazine
Design Guidelines For Better Notifications UX

As always in design, timing matters, and so do timely notifications. Let’s explore how we might improve the notifications UX. More design patterns in our <a href="https://smart-interface-design-patter

7 lug 2025, 14:30:03 | Smashing magazine
CSS Intelligence: Speculating On The Future Of A Smarter Language

CSS has evolved from a purely presentational language into one with growing logical powers — thanks to features like container queries, relational pseudo-classes, and the if() function. Is it still

2 lug 2025, 13:50:02 | Smashing magazine
Turning User Research Into Real Organizational Change

Bridging the gap between user research insights and actual organizational action — with a clear roadmap for impact. https://smashingmagazine.com/2025/07/turning-user-research-into-organizational-chang

1 lug 2025, 12:20:10 | Smashing magazine
Never Stop Exploring (July 2025 Wallpapers Edition)

July is just around the corner, and that means it’s time for a new collection of desktop wallpapers. Created with love by artists and designers from across the globe, they are bound to bring some good

30 giu 2025, 13:10:08 | Smashing magazine