#73 closed defect (bug) (fixed)
Tags should be stripped from <title /> element
Reported by: | rq | Owned by: | matt |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 1.2 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
If one creates a tagged post name (i.e., with some BOLDness or an ACRONYM in it), that gets reflected in a <title> element. That *should* be stripped anyways.
I don't think it's hard to do, hence, marking it as "trivial".
Attachments (1)
Change History (13)
#4
@
21 years ago
Ah! Thanks Matt. I hope the diff is okay. I did a diff using post-old.php(v1.2 file) and post.php(the new one).
#5
@
21 years ago
Btw, the link titles still contain markup even w/ this patch... :/
I think, it's probably because a wrong variable is being used there.
#7
@
21 years ago
I guess it works fine, check http://carthik.net/test for a post without the change and a couple of post with the change.
#8
@
21 years ago
Firefox shows the following tooltip on the post "without a change":
Permanent link: < p >testing< /p > without a change.
(with no spaces in "p" tags)
IMO, that's not correct... ;)
edited on: 06-16-04 21:59
edited on: 06-16-04 22:00
edited on: 06-16-04 22:01
#9
@
21 years ago
I just added the without a change to show how the tags are there without the changes I made. The next two posts are ones made with the changed post.php file.
#10
@
20 years ago
- Owner changed from anonymous to matt
- Resolution changed from 10 to 20
- Status changed from new to closed
Inside of wp_title() we strip_tags.
post.diff contains the fix for this "bug".
I also removed a "stripslashes" that didn't seem to be doing anything useful.