This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5481|Reply: 1

[Angular] Angular component returns nbsp spaces

[Copy link]
Posted on 4/27/2022 7:54:44 PM | | | |
Requirements: The Angular interface text box needs to fix the prefix position, the content after the prefix is dynamically calculated, and the maximum length of the string is known, if it is less than the maximum length, the space needs to be filled.

If the Angular component returns the string directly, the page displays the text directly without appearing as space content.

Solution: Angular usageUnicode encodingBack, the code is as follows:

Attached is a list of escape sequence characters:



There may be other solutions, which can be referenced as follows (not tested):

Angular 11 series (16) page parsing HTML source code
https://www.itsvse.com/thread-9376-1-1.html
(End)




Previous:HTML sets the div element to drag arbitrarily
Next:65 source code download sites
Posted on 4/27/2022 11:19:50 PM |
Learn a little...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com