Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore(docs): fix popover and tooltip docs
Browse files Browse the repository at this point in the history
* update popover and tooltip docs to indicate that the `uib-*-html` attribute
  does not get compiled
* addresses complaint in #4923

Closes #5184
  • Loading branch information
icfantv authored and wesleycho committed Jan 9, 2016
1 parent 71afeeb commit 84bb118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/popover/docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ There are three versions of the popover: `uib-popover` and `uib-popover-template

* `uib-popover`
Takes text only and will escape any HTML provided for the popover body.

* `uib-popover-html`
Takes an expression that evaluates to an html string. *The user is responsible for ensuring the content is safe to put into the DOM!*

Takes an expression that evaluates to an HTML string. Note that this HTML is not compiled. If compilation is required, please use the `uib-popover-template` attribute option instead. *The user is responsible for ensuring the content is safe to put into the DOM!*
* `uib-popover-template`
A URL representing the location of a template to use for the popover body. Note that the contents of this template need to be wrapped in a tag, e.g., `<div></div>`.

Expand Down
4 changes: 2 additions & 2 deletions src/tooltip/docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ There are three versions of the tooltip: `uib-tooltip`, `uib-tooltip-template`,

* `uib-tooltip` -
Takes text only and will escape any HTML provided.
* `uib-tooltip-html` -
Takes an expression that evaluates to an HTML string. Note that this HTML is not compiled. If compilation is required, please use the `uib-tooltip-template` attribute option instead. *The user is responsible for ensuring the content is safe to put into the DOM!*
* `uib-tooltip-template` -
Takes text that specifies the location of a template to use for the tooltip. Note that this needs to be wrapped in a tag.
* `uib-tooltip-html` -
Takes whatever HTML is provided and displays it in a tooltip; *The user is responsible for ensuring the content is safe to put into the DOM!*

### uib-tooltip-* settings

Expand Down

0 comments on commit 84bb118

Please sign in to comment.