浏览代码

Update docs

Steven Silvester 8 年之前
父节点
当前提交
a3b88ba1f4
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/rendermime/index.ts

+ 4 - 2
src/rendermime/index.ts

@@ -228,7 +228,8 @@ namespace RenderMime {
      *
      *
      * #### Notes
      * #### Notes
      * A `safe` output is one that cannot pose a security threat
      * A `safe` output is one that cannot pose a security threat
-     * when added to the DOM, for example when it is set as `.textContent`.
+     * when added to the DOM, for example when text is added with
+     * `.textContent`.
      */
      */
     isSafe(mimetype: string): boolean;
     isSafe(mimetype: string): boolean;
 
 
@@ -238,7 +239,8 @@ namespace RenderMime {
      * #### Notes
      * #### Notes
      * A `santizable` output is one that could pose a security threat
      * A `santizable` output is one that could pose a security threat
      * if not properly sanitized, but can be passed through an html sanitizer
      * if not properly sanitized, but can be passed through an html sanitizer
-     * to render it safe.
+     * to render it safe.  These are typically added to the DOM using
+     * `.innerHTML` or equivalent.
      */
      */
     isSanitizable(mimetype: string): boolean;
     isSanitizable(mimetype: string): boolean;