Решение давно есть:
[URL=https://dev.1c-bitrix.ru/community/webdev/user/203730/blog/8311/?last_comment_id=0&comment_post_id=8311&LAST_LOG_TS=0&PAGEN_1=1]https://dev.1c-bitrix.ru/community/webdev/user/203730/blog/8311/?last_comment_id=0&comment_post_id=8311&LAST_LOG_TS=0&PAGEN_1=1[/URL]
[URL=https://dev.1c-bitrix.ru/community/webdev/user/203730/blog/8311/?last_comment_id=0&comment_post_id=8311&LAST_LOG_TS=0&PAGEN_1=1]https://dev.1c-bitrix.ru/community/webdev/user/203730/blog/8311/?last_comment_id=0&comment_post_id=8311&LAST_LOG_TS=0&PAGEN_1=1[/URL]