jjenzz / jquery.ellipsis Goto Github PK
View Code? Open in Web Editor NEWadd ellipsis to multiline text
Home Page: http://codepen.io/jjenzz/full/liAfz
add ellipsis to multiline text
Home Page: http://codepen.io/jjenzz/full/liAfz
http://codepen.io/anon/pen/ambzyr test with "曖昧真的有結果!這5組 ♥情侶打破「藝人公開戀愛就見光死」的魔咒曖昧真的有結果!這5組情侶打破「藝人公開戀愛就見光死」的魔咒 ♥"
How to ignore break, bold and italics HTML tag in paragraph?
https://jsfiddle.net/k6f1181n/5/
For some reason, there's issues with the forward slash in this string:
APPLE-gen kids can’t just have a normal humidifier? (8 Photos/Gifs)
so it winds up:
APPLE-gen kids can’t just have a normal humidifier? (8 PhotosundefinedGifs)
Also seems to screw up ellipsis.
Chromium 72.0.3626.121
Is there correct way to add onclick :after element "show more/less" to the truncated text?
jquery.ellipsis/jquery.ellipsis.js
Lines 60 to 61 in a1c97ac
We should add forward slash to the html entities list. Otherwise, forward slash returns 'undefined'
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet
'/': '/'
When calculating the number of lines using all words wrapped in <span style="white-space: nowrap;">
and given a decimal point width, sometimes a word that should wrap does not, causing a miscalculation as to where the line break should occur.
Occurring on Chrome.
See codepen for example: http://codepen.io/alan-cole/pen/pboEeg
Is there a license for this?
Hi,
I have working on an application where my view is created and destroyed several times and I am using jquery.ellipsis plugin. But I have seen a issue that when the element deletes from the node, even then resize event is firing and due to this reference, element is not going under garbage collection.
PS: Solved this issue by adding an option of namespace in the plugin, by which i can give my own namespace while calling ellipsis and remove this when required.
It removes all HTML tags inside of the target div. Links, Spans, everything.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.