Project

General

Profile

Actions

Feature #16836

closed

Featurerequest: stdWrap.cropHtml

Added by Steffen Kamper over 17 years ago. Updated over 5 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 #1

Updated by Peter Niederlag over 17 years ago

The idea is very reasonable to me. At quick glance the code/patch looks good also to me. Maybe we can get this done on T3BOARD07.

should wel change this to a "feature-request", since it is not a bug with this proposal. Maybe it would be good to add this as a switch/subproperty of .crop?

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF