PageSourceSearch

https://www.myspectaris.de/vite/assets/truncateHTML-DymXCN-H.js

js myspectaris.de collected 2026-10-09 00:18:20 UTC 1,014 bytes, 2 lines download raw bytes

1var e=/(\s*\S+|\s)$/,t={stripTags:!1,words:!1,noBreaks:!1,length:1/0,ellipsis:`…`,truncated:!1},n=(e,t={})=>{let n=document.createElement(`div`);return n.innerHTML=e,r(n,t).innerHTML},r=(n,i={})=>{typeof i==`number`&&(i={length:i});let a={...t,...i};a.noBreaks&&n.querySelectorAll(`br`).forEach(e=>{let t=document.createTextNode(` `);e.parentNode?.replaceChild(t,e)});let o=n.textContent||``,s=o.length-a.length;if(a.stripTags&&(n.innerHTML=``,n.textContent=o),a.words&&s>0){let t=o.slice(0,a.length).replace(e,``);s=o.length-t.length-1}if(s<0||!s&&!a.truncated)return n;let c=Array.from(n.childNodes).reverse();for(let e=0;e<c.length;e++){let t=c[e],n=(t.textContent||``).length;if(n<=s){a.truncated=!0,s-=n,t.parentNode?.removeChild(t);continue}if(t.nodeType===3){let e=t,r=n-s-1;if(r>=0){let t=e.splitText(r),n=document.createTextNode(a.ellipsis);t.parentNode?.replaceChild(n,t)}break}if(t.nodeType===1){r(t,{...a,length:n-s});break}}return n};export{n as t};
2//# sourceMappingURL=truncateHTML-DymXCN-H.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.