# -*- coding: utf-8 -*- # # Iterativ GmbH # http://www.iterativ.ch/ # # Copyright (c) 2018 Iterativ GmbH. All rights reserved. # # Created on 25.09.18 # @author: Ramon Wenger import bleach import re from api.utils import get_object from assignments.models import Assignment from books.models import ContentBlock class AssignmentParameterException(Exception): pass def handle_text(text): is_list = bool(re.search(r'