Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tidy_get_body(3) [php man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed or ????

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)
Discussion started by: iCONAN
3 Replies

2. UNIX for Dummies Questions & Answers

passing variable to function

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)
Discussion started by: Knotty
4 Replies

3. Shell Programming and Scripting

How to pass variables to FUNCTION ?

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)
Discussion started by: bh_hensem
5 Replies

4. AIX

Tape Library 3583

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)
Discussion started by: xanatos
5 Replies

5. Shell Programming and Scripting

awk modify multiple columns with pipes

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)
Discussion started by: bstamper
10 Replies

6. Shell Programming and Scripting

Emailing html file as body not attachment

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)
Discussion started by: amitbisht9
6 Replies

7. Shell Programming and Scripting

if [ "X$1" = "X" ] what it does

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)
Discussion started by: vkiyv05
8 Replies

8. Shell Programming and Scripting

Add the html tag first and last line the file

Hi, i have 30 html files and i want to add the html tag first (<html>) and end of the line </html> tag..How to do it in script. Thanks, (7 Replies)
Discussion started by: bmk
7 Replies

9. UNIX for Dummies Questions & Answers

Mutt command - email body with out file name

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)
Discussion started by: Ariean
4 Replies

10. Shell Programming and Scripting

Send mail using html tag pre

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)
Discussion started by: ajayram_arya
6 Replies

11. UNIX for Dummies Questions & Answers

Sendmail with HTML body and attachment code issues

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)
Discussion started by: aster007
6 Replies

12. Shell Programming and Scripting

Difficulty to send image in mail body.

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)
Discussion started by: Jewel
3 Replies

13. Shell Programming and Scripting

Need syntax for mailing in UNIX by using html file as body and along with attachment

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)
Discussion started by: Rokkesh
4 Replies

14. UNIX for Beginners Questions & Answers

To get the id value dynamically

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)
Discussion started by: Kumar786
5 Replies

15. UNIX for Beginners Questions & Answers

Multiline html tag parse shell script

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)
Discussion started by: SorcRR
15 Replies