Categories > TinyButStrong general >

getbody evolution

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Lush
Date: 2011-03-04
Time: 06:51

getbody evolution

Hi,

would it be feasible to select an element with a specific ID instead of a tag name in getbody?

For instance, something like [onload;file=myfile;getbody=%myelement] would grab <div id="myelement">my text</div> instead of the whole body.
(% or whatever markup or sign, just a way to tell tbs to look for an element ID and not a tag)

At the moment I use tag names such as <include1>my text</include1> and getbody=include1 to include only specific sections from my source file, but I have to exclude the surrounding tags and I don't feel it's an elegant solution as it clutters my source file with "non-valid" tags.

Or maybe is there another way to achieve this that I may have missed?

Thanks for reading :)
By: Skrol29
Date: 2011-03-04
Time: 21:54

Re: getbody evolution

Hi Lush,

Parameter "getbody" may let you choose to retrieve parts of the file with or without the surrounding tags.
For example: getbody=include1 or getbody=(include1)