We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using clamp for displaying list of emails (chrome). Email format is a standard outlook format
Smith, John (EY123987) <john[email protected]>; Simpson, Homer (EY123987) <homer[email protected]>...
Clamp replace < with <, and browser understands it as a HTML element, thus loosing text <[email protected]>
Issue is on this line
element.innerHTML = target.nodeValue + ' ' + truncationHTMLContainer.innerHTML + opt.truncationChar;
I have applied a fix on local copy of clamp.js file
element.innerHTML = escapeHtml(target.nodeValue) + ' ' + truncationHTMLContainer.innerHTML + opt.truncationChar;
Where escapeHtml is
function escapeHtml(unsafe) { return unsafe .replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, """) .replace(/'/g, "'"); }
Please fix it in a main version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using clamp for displaying list of emails (chrome). Email format is a standard outlook format
Clamp replace < with <, and browser understands it as a HTML element, thus loosing text <[email protected]>
Issue is on this line
I have applied a fix on local copy of clamp.js file
Where escapeHtml is
Please fix it in a main version
The text was updated successfully, but these errors were encountered: