# Refine Activity Item

#### Source Codes

`ocbc-ecoffice/enrich/refine_activity_item/refine_activity_item.py`

#### Description

* If `user_name` keyword is not present,
    * set `user_name` keyword value of `Name` keyword AND delete `Name` keyword from Squirro Item (if present)
    * set `user_email` keyword value of `Email` keyword AND delete `Email` keyword from Squirro Item (if present)
* If `item_title` keyword is present,
    * Remove HTML tags via regex pattern, `r"<\/?[^><]+>"` from `item_title` keyword
    * Assign the sanitized value to `item_title` keyword and `title` property
