Skip to content

Add secutity tips for the html preview - #896

Merged
Matt Bierner (mjbvz) merged 1 commit into
microsoft:vnextfrom
mjbvz:html-preview-docs
Mar 21, 2017
Merged

Matt Bierner (mjbvz) merged 1 commit into
microsoft:vnextfrom
mjbvz:html-preview-docs

Conversation

@mjbvz

Copy link
Copy Markdown
Contributor

Splits the Html preview docs out to its own section of the API complex commands documentation. Also adds notes on html preview security as part of microsoft/vscode#22103


`vscode.previewHtml` - Render the html of the resource in an editor view.

Links contained in the document will be handled by VS Code whereby it supports `file`-resources and [virtual](https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3295)-resources as well as triggering commands using the `command`-scheme. Use the query part of a command-uri to pass along JSON-encoded arguments - note that URL-encoding must be applied.

@mjbvz Matt Bierner (mjbvz) Mar 20, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section all lives in a comment right now. I'm in favor of consolidating it all under the new html preview section in the docs

@mjbvz
Matt Bierner (mjbvz) merged commit d688d69 into microsoft:vnext Mar 21, 2017
Matt Bierner (mjbvz) pushed a commit to microsoft/vscode that referenced this pull request Mar 22, 2017
Follow up on: microsoft/vscode-docs#896

Removes the extended documentation for the html preview since this now lives in the vscode docs
Mandeep Singh (meSingh) pushed a commit to meSingh/vscode that referenced this pull request Sep 6, 2026
Follow up on: microsoft/vscode-docs#896

Removes the extended documentation for the html preview since this now lives in the vscode docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant