In one system, I used a <textarea>
to show the messages that were sent between users of the same and by default <textarea>
they can be resized from the lower right corner.
<textarea></textarea>
Then I updated the system, the messages stopped being plain text and became HTML
, so replace the <textarea>
by <iframe sandbox="">
to protect the system from possible attacks by inyección HTML
, etc.
In short, the question is: Is it possible to make a <iframe>
resizable just like <textarea>
?
I was able to replicate the same behavior of those by
<textarea>
usingCSS
and settingresize
equal toboth
Example