HTML validation using @SafeHtml and JSoup does not support images with relative src. The problem seems to be that SafeHtmlValidator.getFragmentAsDocument sets the baseUri to "", which in turn leads to validation failure. Setting the baseUri to some dummy data like http://localhost will pass the validation test. Would this be possible to set as standard or if not could you allow setting the baseUri in @SafeHtml? |