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/

созданный 16d | 17 апр. 2024 г., 14:50:06


Войдите, чтобы добавить комментарий

Другие сообщения в этой группе

Combining CSS :has() And HTML <select> For Greater Conditional Styling

Amit Sheen demonstrates using :has() to apply styles conditionally when a certain <option> in a <select> element is chosen by the user and how we gain even more conditional styling capabilities

2 мая 2024 г., 12:30:03 | Smashing magazine
Longing For May (2024 Wallpapers Edition)

May is almost here, so what better occasion could there be for some fresh and inspiring desktop wallpapers? Created with love by artists and designers from across the globe, the wallpapers in this pos

30 апр. 2024 г., 14:50:03 | Smashing magazine
Lessons Learned After Selling My Startup

Business acquisitions are common but often shrouded in mystery because they happen behind closed doors. In this article, Yaakov details the story of his company and the journey it took him on, sheddin

29 апр. 2024 г., 18:20:12 | Smashing magazine
The End Of The Free Tier

Free-tier pricing is a common marketing strategy. “Free” gets people in the door and allows them to settle in and see how things work. But, as Juan Diego Rodriguez explains, the practice of free *tier

26 апр. 2024 г., 15:10:12 | Smashing magazine
Conducting Accessibility Research In An Inaccessible Ecosystem

Conducting UX research that includes participants with a variety of disabilities is vital to building inclusive technology, but most prototypes used for testing are inaccessible. Rather than continuin

25 апр. 2024 г., 18:30:21 | Smashing magazine
Using AI For Neurodiversity And Building Inclusive Tools

This article illustrates how AI can be leveraged to build tools that can be inclusive with a little bit of an additional effort. https://smashingmagazine.com/2024/04/ai-neurodiversity-building-inclusi

25 апр. 2024 г., 11:40:19 | Smashing magazine
F-Shape Pattern And How Users Read

Scrolling, scanning, skipping: How do users consume content online? Here’s what you need to know about reading behavior and design strategies to prevent harmful scanning patterns. An upcoming part of

23 апр. 2024 г., 16:30:18 | Smashing magazine