How to write out HTML entity name ( , <, >, etc)

后端 未结 4 496
生来不讨喜
生来不讨喜 2020-12-03 22:29

How would I write the entity name in HTML and not have it do its function? Example: I\'m doing a tutorial and want to tell someone how to use the non-breaking space in their

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 22:47

    JavaScript can be used to change the text of HTML element, below example adds non-blocking space entity character into span element.

    A common character entity used in HTML is the non-breaking space:

提交回复
热议问题