Andrew Rickmann
unread,Mar 23, 2008, 12:19:16 PM3/23/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hkit-discuss
I'm using hkit as part of a WordPress plugin to parse pingbacks for
hReviews and I came across a problem which I found two ways to solve,
so I thought I would post it here for your reference.
The problem is that tidy wraps the content of the page which means
that at times a space is converted into a line break.
Hkit then removes the line breaks, at the end of the get_node_value
function leaving two words without spaces between them.
The two methods of solving this that I have used are:
1. Using the PHP5 Tidy object with config parameters, set the wrap to
a really large number.
2. Amend the replace function, around line 293 of V0.5, to replace
line breaks, new lines, and tabs with a space.
I have amended the version I am using to do both these things as it
suits the use.