A
A
Alexander Alexandrovich2014-10-13 00:27:45
PHP
Alexander Alexandrovich, 2014-10-13 00:27:45

How to preview an article?

Hello, help me solve the problem:
I use wysing tinymce editor, I need to crop the text of the article in order to make a preview.
It would be possible to use the php substr function, but then truncation with open tags is possible.
Does anyone have any ideas for a solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Borisovich, 2014-10-13
@Alexufo

In tinymce, there is a tag insertion <!--more--> for it and parsing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question