Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Swift NSAttributedString render JavaScript?

I noticed that NSAttributedString supports HTML rendering through NSHTMLTextDocumentType. Does NSAttributedString render JavaScript? I can't find any mention about it in the documentation.

like image 263
owlish Avatar asked Jan 24 '26 11:01

owlish


1 Answers

No, you can't render javascript with NSAttributedString. You are limited to HTML only! As you said that you haven't found anything mentioned about document, that is because NSAttributedString does not support javascript!

like image 139
Ketan Parmar Avatar answered Jan 27 '26 00:01

Ketan Parmar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!