mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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
|
|
});
|
|
}
|