Skip to content

Commit

Permalink
Add security notice about Tooltip's content
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimo Dimov committed Sep 7, 2015
1 parent 8a18f3c commit 4783a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/api/javascript/ui/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ Defines the animation duration.
The text or a function which result will be shown within the Tooltip.
By default the Tooltip will display the target element title attribute content.

> If the content passed to the Tooltip includes scripts, they will be executed. If this is not desired, make sure to strip any undesired content in advance.
#### Example - extract the content from target element content

<div id="container">
Expand Down
6 changes: 2 additions & 4 deletions docs/web/tooltip/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Among the properties that can be controlled:

## Loading Tooltip content via AJAX

A **Tooltip** provides built-in support for asynchronously loading content from a URL. This URL
should return a HTML fragment that can be loaded in a Tooltip content area.
A **Tooltip** provides built-in support for asynchronously loading content from a URL. This URL should return a HTML fragment that can be loaded in a Tooltip content area.
If the content passed to the Tooltip includes scripts, they will be executed.

### Load Tooltip content asynchronously

Expand All @@ -87,7 +87,6 @@ should return a HTML fragment that can be loaded in a Tooltip content area.

## Accessing an Existing Tooltip


You can reference an existing **Tooltip** instance via
[jQuery.data()](http://api.jquery.com/jQuery.data/). Once a reference has been established, you can
use the API to control its behavior.
Expand All @@ -96,4 +95,3 @@ use the API to control its behavior.

var tooltip = $("#target").data("kendoTooltip");


0 comments on commit 4783a06

Please sign in to comment.