in reply to Re: Tokeparser Textify Command
in thread Tokeparser Textify Command
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tokeparser Textify Command
by Aristotle (Chancellor) on Nov 10, 2005 at 06:15 UTC | |
The documentation you just quoted clearly states that the value of the key specifies which attribute the replacement text should be taken from (so by default, it replaces <img> tags by the text in their alt attribute). Since you want no replacement text, an empty string should be the appropriate choice. (Not that it matters, since <br> has no attributes to pick replacement text out of.) You could be more specific about “no avail” – what is happening and how does it contradict your expectations? Makeshifts last the longest. | [reply] |
by SpacemanSpiff (Sexton) on Nov 10, 2005 at 07:25 UTC | |
to do that, i use the following line in my script:
this returns the following printed later in the script:
all of the HTML is stripped by nature of the operation, and that's great. i'm looking to keep the BR tags, however, so when i reimport the data elsewhere, it retains the formatting of the original (notice how the text at the bottom is all smashed together with no line breaks). so what i meant earlier by no avail, i meant i was still getting the text all squashed together as above. hope that made a little more sense. | [reply] [d/l] [select] |
by PodMaster (Abbot) on Nov 10, 2005 at 09:09 UTC | |
| [reply] [d/l] |