---
title: "Discussion on \"Shave extra characters from text with one line of code\" | Hashnode"
description: "Discussion on \"Shave extra characters from text with one line of code\". Truncate text to give symmetric ui design layout. Mostly seen with blog articles description."
url: "https://hashnode.com/posts/shave-extra-characters-from-text-with-one-line-of-code/6040ffbe6a43af22af9d1e15"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Shave extra characters from text with one line of code](https://rexwebmedia.hashnode.dev/shave-extra-characters-from-text-with-one-line-of-code?utm_source=hashnode&utm_medium=feed)

Truncate text to give symmetric ui design layout. Mostly seen with blog articles description.

Mar 4, 2021 · 1 min read · rexwebmedia.hashnode.dev  
Updated Oct 10, 2022  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#tips](https://hashnode.com/tag/tips)

## Written by

[Arvind Kumar 🌱](https://hashnode.com/@rexarvind)

@rexarvind · Lucknow, India

  
[View profile](https://hashnode.com/@rexarvind)

Web Developer and Graphic Designer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
