Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cot_import() 'TXT' filter don't replace '<' to '&lt;' #1763

Closed
Alex300 opened this issue Jan 22, 2024 · 0 comments
Closed

cot_import() 'TXT' filter don't replace '<' to '&lt;' #1763

Alex300 opened this issue Jan 22, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Alex300
Copy link
Member

Alex300 commented Jan 22, 2024

[RU]
При использовании фильтра 'TXT' не надо менять символ < на последовательность &lt;. Символы должны импортироваться и сохраняться в БД "как есть", а при выводе обрабатываться функцией htmlspecialchars()

Например:

Создать тему на форуме с названием: Со спец. < символами >

Получаем в БД: Со спец. &lt; символами >
После применения htmlspecialchars() на выводе: Со спец. &amp;lt; символами &gt;

Снимок экрана 2024-01-22 100216

Должно быть:

в БД: Со спец. < символами >
После применения htmlspecialchars() на выводе: Со спец. &lt; символами &gt;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant