Class HtmlUtil


  • public class HtmlUtil
    extends java.lang.Object
    • Method Detail

      • fixImageSourceUrls

        public static void fixImageSourceUrls​(DocumentModel fileContents,
                                              JBakeConfiguration configuration)
        Image paths are specified as w.r.t. assets folder. This function prefix site host to all img src except the ones that starts with http://, https://.

        If image path starts with "./", i.e. relative to the source file, then it first replace that with output file directory and the add site host.

        Parameters:
        fileContents - Map representing file contents
        configuration - Configuration object