Project

General

Profile

Actions

Feature #16836

closed

Featurerequest: stdWrap.cropHtml

Added by Steffen Kamper almost 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2007-01-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

cropping any given HTML may disturb HTML, if it's cropped inside a tag. The only way to prevent this is to strip the tags before.

Here is a function that makes a correct crop with HTML, counting the non-HTML-words and close all open tags. The function is small and handy and works with php dom-function, see example file attached

See it online at http://www.sk-typo3.de/xmltree.php

(issue imported from #M4747)


Files

cropHTML.txt (1.6 KB) cropHTML.txt Administrator Admin, 2007-01-06 20:24

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #18535: support html-tags in crop function of stdWrapClosedDmitry Dulepov2008-04-01

Actions
Actions

Also available in: Atom PDF