I’ve been trying to get the styles of user provided text. For example, there’s a textbox where user can put text of different sizes and styles. If user gives a 20px text, the code will detect that 20px and other styles like bold or italic or underline etc. Is there any way to do this?
I tried to google but found ways that requires user to either declare the size or give the size and other styles to the text manually. I want it to detect and show it without having user to go through the hassle.
Sadman Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.