Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "string"

Index

Functions

escapeHTML

  • escapeHTML(markup: string): string
  • 转译HTML,将string中的 "&", "<", ">", '"', "'" 进行转义,注入html中

    example
    escapeHTML('<div>123</div>') // => '&lt;div&gt;123&lt;/div&gt;'

    Parameters

    • markup: string

      html 字符串

    Returns string

    转义后的字符串

setupLocalPreviewUrl

  • setupLocalPreviewUrl(file: File): any
  • 获取本地图片文件的预览地址

    example
    setupLocalPreviewUrl(file) // => 'blob:https://localhost:8080/1fac6c73-4fb8-48fd-84d0-bac9e109564f'

    Parameters

    • file: File

      图片文件

    Returns any

Generated using TypeDoc