Title: Escaping integer in customizer
Last modified: August 24, 2016

---

# Escaping integer in customizer

 *  [QerraPress](https://wordpress.org/support/users/tronoxas/)
 * (@tronoxas)
 * [11 years ago](https://wordpress.org/support/topic/escaping-integer-in-customizer/)
 * Should I just use esc_attr on integer? Or convert it to string first?
 * `font-size: <?php if ( get_theme_mod('quidus_h1_size') != '' ) : esc_attr_e((
   string)(intval(get_theme_mod('quidus_h1_size')) * 0.039)); ?>rem <?php endif;?
   >;`

The topic ‘Escaping integer in customizer’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [QerraPress](https://wordpress.org/support/users/tronoxas/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/escaping-integer-in-customizer/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
