Doc #73129 [Opn->Csd]: [RU] Wrong translation of strip_tags() docs

From: Date: Sun, 06 Nov 2016 18:39:16 +0000
Subject: Doc #73129 [Opn->Csd]: [RU] Wrong translation of strip_tags() docs
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14072@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73129&edit=1 ID: 73129 Updated by: rjhdby@php.net Reported by: arcadius at mail dot ru Summary: [RU] Wrong translation of strip_tags() docs -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: Irrelevant -Assigned To: +Assigned To: rjhdby Block user comment: N Private report: N New Comment: already updated Previous Comments: ------------------------------------------------------------------------ [2016-09-20 13:45:39] arcadius at mail dot ru Description: ------------ Source (http://php.net/manual/en/function.strip-tags.php): In PHP 5.3.4 and later, self-closing XHTML tags are ignored and only non-self-closing tags should be used in allowable_tags. For example, to allow both <br> and <br/>, you should use: <?php strip_tags($input, '<br>'); ?> Current russian translation (http://php.net/manual/ru/function.strip-tags.php): В PHP 5.3.4 и новее также необходимо добавлять соответвующий закрывающий тег XHTML, чтобы удалить тег из str. Например, для удаления и <br> и <br/> нужно сделать следующее: <?php strip_tags($input, '<br><br/>'); ?> Expected result: ---------------- Should be smth like: В PHP 5.3.4 и новее самозакрывающие теги XHTML игнорируются, и в параметре allowable_tags должны использоваться только не самозакрывающие теги. Например, чтобы оставить и <br> и <br/>, нужно сделать следующее: <?php strip_tags($input, '<br>'); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73129&edit=1

« previous php.doc.bugs (#14072) next »