mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-11 14:00:10 +00:00
12 lines
264 B
TypeScript
12 lines
264 B
TypeScript
function truncateHtmlString(): string {
|
|
return $.truncate('<p>Stuff and <i>Nonsense</i></p>', {
|
|
length: 13
|
|
});
|
|
}
|
|
|
|
function truncateVirtualElement (): JQuery {
|
|
return $('<p>Stuff and <i>Nonsense</i></p>').truncate({
|
|
length: 13
|
|
});
|
|
}
|