PHP: HTML Tag/Tag data remover, Javascript: Calculate Display Page Data

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
(Please refer to the file provided for an example)

Preparing a word document to HTML for display in a set-sized DIV (ie: to be displayed in a simple eBook).

Require a program to do the following:
1. PHP to strip </html tags from file, [and] cut out tags and content
2. Using Javascript, given a certain div size (height, width), calculate how many non-overflow pages the data requires in order to be shown.

1. Given an HTML, write PHP functionality to:

a) Strip tags, but keep the content
b) cut out and all contents (but should be put in a variable, just in case we wish to save this at a later point)

2. With the remaining HTML, use Javascript to split HTML into pages (according to a certain div height/width)

a) given a div size (given a height/width), parse through the HTML contents to see how many pages (of the given size) are needed to display all the content. (***NOTE: see example file)

***using JS: clientHeight, write a block of data to the div (a paragraph, or table) and loop through data blocks to see if they overflow.
*** create an array of text, to store each "page" of data

Example logic:

while(exists HTML){
get next data block
if(data does not overflow){
add data to current string
else if(data overflows){
push data that fits in the without overflowing, into an array element (page)
use a new string with overflow text to start a fresh string, and continue looping with remaining data


Additional Project Description:
12/22/2012 at 5:49 PKT

Given: HTML
PHP part of program should be able:
1. Remove [html] tags
2. Cut out [style] tags and data
JAVASCRIPT part of the program should
1. Given a set div size and HTML content to display (from above), cut the HTML content and place into div size where no overflow exists (in essense, to count the amount of div, or pages, to show all the data)

No DB creation or insertion. No fancy output, just the PHP functionality is required.

Skills required:
CSS, HTML, HTML5, Javascript, PHP
Additional Files: Test+Files.rar
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 210
in 6 days
$ 200
in 5 days
$ 250
in 999 days
$ 175
in 3 days
Hire techwelf
$ 223
in 10 days
$ 400
in 5 days
Hire mihaidraghicioiu
$ 50
in 3 days
$ 250
in 10 days
$ 250
in 3 days
$ 250
in 15 days