🦊
That's all folks!
Highlights
Pinned Loading
-
infinite-scroll
infinite-scroll PublicReact app with infinite scroll and selected item persistence in local storage.
JavaScript
-
All Browsers (iOS and Safari include...
All Browsers (iOS and Safari included) Date Friendly 1// Preview: https://codepen.io/matheusfranco/pen/LYKeGLo
23export const universalDate = (input: string, token = '-', isAmerican = false): Date => {
4const parts = input.split(token);
5const yearSize = 4;
-
Pure HTML Escape Sanitizer
Pure HTML Escape Sanitizer 1//Preview: https://codepen.io/matheusfranco/pen/abgEqMm
23export const sanitizeHTML = (input = '', remainHtml = false): string => {
4let cleaned = input.replace(/<(iframe|script|object|embed|style|link)[\s\S]*?>[\s\S]*?<\/\1>/gi, '');
5return remainHtml ? cleaned : cleaned.replace(/<\/?[^>]+>/gi, '');
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.