TagClouder
Mar. 2nd, 2006 12:47 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I've added a feature to the TagClouder such that it now offers you the raw HTML to paste into your own page, etc. Unfortunately it comes out like this:
books car
Presumably LJ is stripping out the <style> ... </style> for security reasons or some such... any thoughts for ways round this? I could go back to doing it with text attributes I suppose, but that seems a bit retrograde...
Any thoughts about this or further improvements welcome!
Edit: now a trial with no internal style spec, but linking to an external stylesheet:
books car
Bah, no better.
Edit: now a trial with inline style:
books car
oho! -- that looks more promising. Unfortuatnely it involves hacking into the <a> tag, which I'm keen to avoid doing as it will require all manner of hideous regexping. And it this way really any better than using <font>?
books car
Get your own tag cloud from the UKG TagClouder!
Presumably LJ is stripping out the <style> ... </style> for security reasons or some such... any thoughts for ways round this? I could go back to doing it with text attributes I suppose, but that seems a bit retrograde...
Any thoughts about this or further improvements welcome!
Edit: now a trial with no internal style spec, but linking to an external stylesheet:
books car
Get your own tag cloud from the UKG TagClouder!
Bah, no better.
Edit: now a trial with inline style:
books car
Get your own tag cloud from the UKG TagClouder!
oho! -- that looks more promising. Unfortuatnely it involves hacking into the <a> tag, which I'm keen to avoid doing as it will require all manner of hideous regexping. And it this way really any better than using <font>?
no subject
Date: 2006-03-02 01:19 pm (UTC)It's not stripping out the style tags, as an examination of the source for this page shows:
The problem, of course, is that it doesn't have any definitions in the CSS for what those styles should look like :(
(Reposted using blockquote tags, rather than pre tags, in order to improve the resulting layout)
no subject
Date: 2006-03-02 02:23 pm (UTC)no subject
Date: 2006-03-02 02:27 pm (UTC)You need to put
<link rel="stylesheet" type="text/css"
etc into the page header to do that. Unless I've missed a wonderfully useful trick somewhere!And whilst you might be able to reconfigure (I don't know: I've not got to grips with LJ's styling modules) your page style to do that, it's not going to affect mine.
no subject
Date: 2006-03-02 02:30 pm (UTC)no subject
Date: 2006-03-02 02:28 pm (UTC)Why is this: what's so insecure about stylesheets I wonder?
no subject
Date: 2006-03-02 03:11 pm (UTC)stylehseets can do clever things including running javascript from offsite, etc.
You tried inline styles? ie style attributes rather than using classes. Dunno if it will be any better but can't be hard to test. :)
no subject
Date: 2006-03-02 03:15 pm (UTC)Mm, good idea, I'll give that a go next.
no subject
Date: 2006-03-02 03:24 pm (UTC)no subject
Date: 2006-03-02 03:26 pm (UTC)Also CSS is likely to play more nicely with other style stuff (eg if I want my default font sizes to be twice as big then CSS will probably scale nicely whereas <font> probably won't.
In general though whether it is any better really depends on what criteria you are using to measure.
no subject
Date: 2006-03-02 03:39 pm (UTC)