TIDY_GET_BODY(3) 1 TIDY_GET_BODY(3)tidy::body - Returns atidyNodeobject starting from the <body> tag of the tidy parse tree
Object oriented style
SYNOPSIS
tidyNode tidy::body (void )
DESCRIPTION
Procedural style
tidyNode tidy_get_body (tidy $object)
Returns a tidyNode object starting from the <body> tag of the tidy parse tree.
PARAMETERS
o $object
- The Tidy object.
RETURN VALUES
Returns a tidyNode object starting from the <body> tag of the tidy parse tree.
EXAMPLES
Example #1
tidy.getBody(3) example
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$body = $tidy->Body();
echo $body->value;
?>
The above example will output:
<body>
<p>paragraph</p>
</body>
NOTES
Note
This function is only available with Zend Engine 2 (PHP >= 5.0.0).
SEE ALSO tidy.head(3), tidy.html(3).
PHP Documentation Group TIDY_GET_BODY(3)
Check Out this Related Man Page
TIDY_GET_HTML(3) 1 TIDY_GET_HTML(3)tidy::html - Returns atidyNodeobject starting from the <html> tag of the tidy parse tree
Object oriented style
SYNOPSIS
tidyNode tidy::html (void )
DESCRIPTION
Procedural style
tidyNode tidy_get_html (tidy $object)
Returns a tidyNode object starting from the <html> tag of the tidy parse tree.
PARAMETERS
o $object
- The Tidy object.
RETURN VALUES
Returns the tidyNode object.
EXAMPLES
Example #1
tidy_get_html(3) example
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$html = $tidy->html();
echo $html->value;
?>
The above example will output:
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>
NOTES
Note
This function is only available with Zend Engine 2 (PHP >= 5.0.0).
SEE ALSO tidy.body(3), tidy.head(3).
PHP Documentation Group TIDY_GET_HTML(3)
I have a big text file that has specific paragraph titles always in the same order.
If I wanted to delete all text after a certain title would I want to use sed or another command? The paragraph titles are "unique" in the way that they are not located anywhere else in the file. (3 Replies)
Hi,
I am trying to sum up numbered columns and in order to tidy up the program I have wrote a function to do the adding of some numbers. I have a problem though with passing a variable to the function in the UNIX bash shell. The function only gives the first number in the variable list and does... (4 Replies)
Hi...
Actually, I want to pass a few variables to the function and print it. But, its looks like not working. Could some body help me how could i do that ?... below is my program...
#!/usr/bin/ksh
usage()
{
echo "Usage: $0 -n -a -s -w -d"
exit
}
rename()
{
echo "rename $1 $2"... (5 Replies)
Hello every body, I have one tape library 3583 but I can't install this some body have ben installed??
when I tray to install it, the output is the next:
Method error (/etc/methods/cfgAtape):
0514-022 The specified connection is not valid.
some Idea??
thanks
greetings (5 Replies)
Hello,
I have a CSV-like dataset where some of the columns contain HTML snippets which I need to convert to XHTML. For any given snippet, I have a functioning config for the text processor 'tidy' such that
tidy -config tidy.cfg example.html
does the job I need done.
I would like to process... (10 Replies)
Hi All,
I want to send the html file as message body not as an attachment. below is my code.it is printing the html code as it is in the email.
your help is needed urgently.
VTIER=$ROOTHOME/vtierlist2.txt
genhtml=/$ROOTHOME/genhtml.html
MAILTO=/$ROOTHOME/maillist
SUBJECT="Vtier Usage... (6 Replies)
if what is the meaning for "X$1".
---------- Post updated at 02:14 AM ---------- Previous update was at 02:14 AM ----------
can any body tell on above.. (8 Replies)
Hello All,
I know we can put body inside a mail using -i option for specifying the file which contains body message, is there an option for me to specify body content instead of a file specification only using mutt?
Below is not working and i don't see any options in manual page!
... (4 Replies)
Need assistance. Trying to send a test.csv file using html tag <PRE> </PRE>. Used to work without any issue . But now gets me and stdin issue. Please give me any suggestions
#!/usr/bin/ksh
export MAILTO=" <userid>@a.com"
export SUBJECT="Test mail "
(
echo "Subject: $SUBJECT"
echo... (6 Replies)
Hi,
I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail.
Below are the 2 parts of the code.
I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
I have jpg file in my server. I am facing difficulty while sending the image in body . appreciate your help to fix to below code.
echo "--FILEBOUNDARY"
echo "Content-Type: image/jpg"
echo "Content-Disposition: inline; filename=\"tick.jpg\""
echo... (3 Replies)
Hi All,
I need a syntax for mailing in unix by using html code file output as body and along with attachment (without using mutt command)
HTML code file : html1.txt
Attachment : attach1.txt
I was using the below codes but they are not working.
( cat html1.txt ; uuencode attach1.txt... (4 Replies)
Hi,
I have .html file and need to get the id value based on the latest modified date from the html file.
output : 1456.
Thanks in advance
Here is the .html file
<html>
<head><title>Index</title>
</head>
<body>
<h1> BI EI Team</h1>
<pre>ID Last modified ... (5 Replies)
Hello,
I want to parse the contents of a multiline html tag
ex:
<html>
<body>
<p>some other text</p>
<div>
<p class="margin-bottom-0">
text1
<br>
text2
<br>
<br>
text3
</p>
</div>
</body> (15 Replies)