I want to limit the length of the product name on the front end. I have the following code in the list.phtml
<a class="product-item-link" href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>">
<?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a>
How I can limit the product name to 50 characters for example?
Thank you