Categories
HTML

How to fix &times word in HTML changes to ×?

Spread the love

Sometimes, we want to fix &times word in HTML changes to ×.

In this article, we’ll look at how to fix &times word in HTML changes to ×.

How to fix &times word in HTML changes to ×?

To fix &times word in HTML changes to ×, we should escape the ampersand.

For instance, we write

<div class="test">&amp;times</div>

to add &amp; to render an ampersand on the page.

Conclusion

To fix &times word in HTML changes to ×, we should escape the ampersand.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *