I am using a table in angular application with below syntax
<table>
             <thead>
                <tr>
                    <th>POS</th>
                </tr>
            </thead>
            <tbody>
                   <td contentEditable="true" [ngStyle]="{'background-color':pinkColor('POS')}" 
                   [textContent]="e.plcOfSrvc"  (input)="e.plcOfSrvc = 
                      $event.target.textContent"/>
            </tbody>
        </table>
i need to limit max char in table cell say like 2 for example we need to limit to 2 chars like "OH" or "IH" not "OHB".
 
    