public static function buildWebPath($path)
    {
        $_this = self::getInstance();
        return trim(FilesystemHelper::resolveRelatedPath($_this->getDocumentRoot(), realpath($path)), '/');
    }
public static function buildWebPath($path)
    {
        $_this = self::getInstance();
        return trim(FilesystemHelper::resolveRelatedPath($_this->getDocumentRoot(), realpath($path)), '/');
    }
public static function buildWebPath ( $ path ) { $ _this = self :: getInstance ( ) ; return trim ( FilesystemHelper :: resolveRelatedPath ( $ _this -> getDocumentRoot ( ) , realpath ( $ path ) ) , '/' ) ; }
Build a web path ready to use in HTML

This will build a relative path related to the object `$document_root` and ready-to-use
in HTML attributes. It uses the "smart resolving" feature of the `Library\Helper\Filesystem`
class: path is returned relative to `$document_root` even if it is not in it in the
filesystem.

@param   string  $path   The path to transform
@return  string
@see     \Library\Helper\Filesystem::resolveRelatedPath()
Build a web path ready to use in HTML