I got a textbox that allows users to put image link (ex: http://abc.test.gif) & another textbox that allows user to put Alternate text (ex: "This is test.gif"), & a submit button.
When a user clicks on submit buton, the program will generate <img src="http://abc.test.gif" alt="This is test.gif">
this string & store it into DB for later use.
My question is: do i need to sanitize the imagelink "http://abc.test.gif"
& the text in alt tag "This is test.gif"
For example, do i need to use UriUtils.isSafeUri("http://abc.test.gif");
& SafeHtmlUtils.fromString("This is test.gif"