| ▲ | onion2k 7 hours ago | |||||||
it's not at all clear which is which from the names There's setHTML and setHTMLUnsafe. That seems about as clear as you can get. | ||||||||
| ▲ | entuno 7 hours ago | parent | next [-] | |||||||
If that'd been the design from the start, then sure. But it's not at all obvious that setHTML is safe with arbitrary user input (for a given value of "safe") and innerHTML is dangerous. | ||||||||
| ▲ | hahn-kev 7 hours ago | parent | prev [-] | |||||||
But you can use InnerHTML to set HTML and that's not safe. | ||||||||
| ||||||||