php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73129 [RU] Wrong translation of strip_tags() docs
Submitted: 2016-09-20 13:45 UTC Modified: 2016-11-06 18:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: arcadius at mail dot ru Assigned: rjhdby (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arcadius at mail dot ru
New email:
PHP Version: OS:

 

 [2016-09-20 13:45 UTC] 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>');
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-20 16:06 UTC] cmb@php.net
-Summary: Wrong russian translation of strip_tags() docs +Summary: [RU] Wrong translation of strip_tags() docs
 [2016-11-06 18:39 UTC] rjhdby@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rjhdby
 [2016-11-06 18:39 UTC] rjhdby@php.net
already updated
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC