- Issue created by @claudiu.cristea
- ๐ฎ๐ชIreland lostcarpark
I think the trimming algorithm will need to distinguish between paragraph type tags (
<p> <div> <h1>
) and inline type tags (<em> <str>
), and only add a space for the paragraph ones. This will make the code a bit more complex. - ๐ท๐ดRomania claudiu.cristea Arad ๐ท๐ด
@lostcarpark, I donโt think we have to reinvent the wheel. There must be some good libraries out there that are already doing this
- First commit to issue fork.
- @eugen_n opened merge request.
- Status changed to Needs review
over 1 year ago 6:29am 6 August 2023 - First commit to issue fork.
- Status changed to Needs work
over 1 year ago 7:06pm 13 August 2023 - ๐บ๐ธUnited States ultimike Florida, USA
I am writing a test for this...
-mike
- Assigned to markie
- Status changed to Needs review
over 1 year ago 7:26pm 13 August 2023 - ๐บ๐ธUnited States ultimike Florida, USA
Test added. Ready for review.
-mike
- @anybody opened merge request.
- ๐บ๐ธUnited States ultimike Florida, USA
@Anybody, why the new !67 merge request?
The existing one, !57 has the updated test is it...
-mike
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Sorry! I clicked there accidentally, the fork was already existing. Closed it!
- Status changed to Needs work
over 1 year ago 9:25pm 14 August 2023 - ๐บ๐ธUnited States markie Albuquerque, NM
Yet another PHPCS fix needed. Long URL can probably be on it's own comment line.
- Status changed to Needs review
over 1 year ago 12:45pm 15 August 2023 - ๐บ๐ธUnited States ultimike Florida, USA
@Anybody - got it. No worries.
@markie - phpcs issue fixed.
-mike
Applied MR !57 changes on local, it fix the issue successfully and working fine. Now there is no space is there before before full stop, comma. Attached Before and After image for reference. Hence +1 RTBC..
-
markie โ
committed 8e652bdd on 2.1.x authored by
Eugen_N โ
Issue #3369954 by Eugen_N, ultimike, markie, kushagra.goyal, claudiu....
-
markie โ
committed 8e652bdd on 2.1.x authored by
Eugen_N โ
- Status changed to Fixed
over 1 year ago 4:09pm 16 August 2023 - ๐บ๐ธUnited States markie Albuquerque, NM
Thank you for testing and fixing the PHPCS.. Merged in #57.
- ๐ท๐ดRomania claudiu.cristea Arad ๐ท๐ด
Thank you so much for the fix. However, maybe on the next major version we can think on using a 3rd-party that is specialized in striping the tags in a smart way. I've suggested https://github.com/mtibben/html2text but there might be also other tools out in the wild.
Automatically closed - issue fixed for 2 weeks with no activity.